Faced such a problem that CSS and HTML files can be formatted with Ctrl + Alt + L , but for some reason PHP ignores.

Maybe I knocked the settings somewhere? What needs to be done so that the formatting via hot keys also works in PHP files?

  • one
    This is because the webstorm is not designed to work with PHP. Use phpstorm - rjhdby
  • Settings-> Code Style-> PHP - here we ’ve watched the settings - titov_andrei
  • Something I did not understand what needs to be configured in the Code Style parameters. In extensions there in general PHP is not observed. Is it that if I work with php during the layout process I also need to switch to phpStorm? - BlackStar1991
  • one
    not observed, because there is no PHP support in WebStorm at all. So yes - if you work with PHP, and you need the ability to format, run, debug, etc. PHP code - go to PHPStorm - lena

1 answer 1

PhpStorm must be used.

Then that webStorm is ide intended for editing js projects. PhpStorm exists for editing PHP files)

PhpStorm also supports js editing.

  • Then that webStorm is ide intended for editing js projects. PhpStorm exists for editing PHP files) PhpStorm also supports editing js - drm
  • In the answer write, you have less words there now than in this comment - vp_arth
  • In WebStorm you can install support for php files? - Kniga