Automatic code formatting according to defined styles?

Hi,  I'm evaluating PhpStorm and generally I have a very positive feeling about it.  However, there is one thing that bothers me. Is there a way to make PhpStorm do automatic formatting (while I write) of code according to active code style? Now, I have to press Ctrl+Alt+L to do the formatting, which is not very user friendly. Mostly I forget about need to format my code manually, and I'm reminded either by other developers or git diff output.  Thanks!

3 comments
Comment actions Permalink

Enable Reformat Code option in the version control Commit Project dialog.


0
Comment actions Permalink

Hi Serge,

Thanks for your reply!

Is there any way to enable it without using version control options in PhpStorm?

0

Please sign in to leave a comment.