0

I used Pycharm a lot and it automatically highlighted not only syntax errors, but also coding style (PEP8).

Now I use IntelliJ with PHP plugin (it's basically PHPstorm) and I want it to tell me if my code is fitting PSR-2 style.

My PyCharm underscored even lacking space in a line like:

if a<3:

but would not underscore this:

if a < 3:

Is it possible in IntelliJ with PHP plugin?

Zbigniew Kisły
  • 692
  • 1
  • 6
  • 12

1 Answers1

1

You can enable CodeSniffer and configure it with PSR2 rules.

Alex Blex
  • 34,704
  • 7
  • 48
  • 75