phpstorm2018默认代码注释符是在行首的,如下所示
function foo()
{
// return "string";
}
那如果想修改注释符默认位置,如下所示,该如何设置?
function foo()
{
//return "string";
}
1.点击左上角的File,选择setting
2.选择Editor->Code Style->PHP->Code Generation->Comment Code 然后把选项中的Line comment at first column中的勾去掉,然后再点击Apply,最后点击ok就大功告成了!