Phpstorm sets the indent position and equal sign alignment of the annotator

Procedural apes are fearless 2022-02-13 05:19:37 阅读数:63

phpstorm sets indent position equal

PhpStorm Set annotation indent position method
In daily life PHP Project under development , Use Phpstrom When single line notes , Annotation symbols 「//」 Not aligned with the indented position of the code .

Note misalignment :

 Insert picture description here

And what we want is the following :
 Insert picture description here

Setting mode :

menu bar :File > Settings > Editor > Code Style > PHP

Uncheck the 「Code Generation」 Under the tab 「Line comment at first column」

Add check 「Code Generation」 Under the tab 「Add a space at comment start」
 Insert picture description here

Set equal sign alignment

 Insert picture description here

After setting up , In turn, click 「Apply」、「OK」 Button , Make configuration effective .

copyright:author[Procedural apes are fearless],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130519349100.html