Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Moeez448's avatar

Format the file in Phpstorm on save.

I want to format the file whenever I save the file. Means Auto format on save in phpstorm I have downloaded the extension but it is not working fine. Please help me solve this issue.

0 likes
1 reply
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

It is built into phpstorm. Open settings and search for "on save"

From the docs

  1. Press Ctrl+Alt+S to open the IDE settings and select Tools | Actions on Save.
  2. Enable the Reformat code option.
1 like

Please or to participate in this conversation.