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!
请先登录再写评论。
Enable Reformat Code option in the version control Commit Project dialog.
Hi Serge,
Thanks for your reply!
Is there any way to enable it without using version control options in PhpStorm?
No.