Zbigniew Kisły
Zbigniew Kisły

Reputation: 742

Can I set intelliJ to highlight php coding style?

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?

Upvotes: 0

Views: 227

Answers (1)

Alex Blex
Alex Blex

Reputation: 37018

You can enable CodeSniffer and configure it with PSR2 rules.

Upvotes: 1

Related Questions