How to set the style of line comment in phpstorm

前端 未结 3 1770
心在旅途
心在旅途 2021-02-05 01:29

How to change the default style of line comment in PHPStorm to at indentation level rather than at first column?

if ($condition) {
// At first column.
    // At          


        
3条回答
  •  既然无缘
    2021-02-05 01:46

    Version 2017.3 and greater

    Looking at this answer, noticed that it needs a little updating. As of version 2017.3, this has been updated to:

    Preferences > Editor > Code Style > PHP > (tab) Code Generation > Comment Code > (uncheck) Line comment at first column

提交回复
热议问题