2017-05-28 29 views
0

的開始斜線當我使用註釋快捷方式(按Ctrl +/)的斜線被放置在該行的開頭,就像這樣:PhpStorm:評論快捷地在在線

​​

不過我d期望這種行爲:

protected function before() 
{ 
    //echo "(before) "; 
} 

如何配置PhpStorm使用後一種方法?

回答

3
  1. Settings/Preferences
  2. Editor | Code Style | PHP
  3. Other選項卡,取消選擇Line comments at first column

enter image description here

+0

謝謝,我不希望它是在 「其他」 選項卡。 :) – veteri

+0

它現在在「代碼生成」選項卡中 – ricka