When I use the comment shortcut (Ctrl + /) the slashes are placed at the beginning of the line, like this:
protected function before()
{
// echo "(before) ";
}
However I'd expect this behaviour:
protected function before()
{
//echo "(before) ";
}
How do I configure PhpStorm to use the latter approach?
Settings/Preferences
Editor | Code Style | PHP
Other
tab and uncheck Line comments at first column
optionIn modern versions it is now located at the Code Generation
tab: