如何在phpstorm中设置行注释的样式 [英] How to set the style of line comment in phpstorm

查看:699
本文介绍了如何在phpstorm中设置行注释的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将PHPStorm中的行注释的默认样式更改为缩进级别而不是第一列?

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 indentation level
}


推荐答案

您可以在选项 - >代码样式 - > PHP - >环绕和括号中更改此选项,然后选中第一列的注释。

You can change this in "Options -> Code Style -> PHP -> Wrapping and Braces" and check "Comment at first colum".

这篇关于如何在phpstorm中设置行注释的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆