WebStorm强制使用2个空格作为标签

时间:2017-03-16 23:05:19

标签: webstorm

我已将WebStorm配置为使用2个空格作为标签,如下所示:

Settings->Editor->Code Style->JavaScript
Use tab character: no
Tab size: 2
Indent: 2
Continuation indent: 2

然而,在某些情况下,WebStorm仍使用4个空格,例如低于评论或低于循环开始陈述:

// comment
....forces tab out to here
for () {
....forces tab out to here

在所有情况下都有办法强制使用2个空格标签吗?

0 个答案:

没有答案
相关问题