怎么设置webstorm缩进

2025-04-20 15:55:43

1、在电脑上打开webstorm,在首页中写一个比好简单的html语句,然后使用ctrl+s保存代码

怎么设置webstorm缩进

2、点击webstorm的左上角找到file-settings设置功能,点击进入

怎么设置webstorm缩进

3、在settings中找到Editor-code style-javascript,敛财醣沁并将里面的Table size 、indent、Continuation iindent的值都调整为4,并且点击OK

怎么设置webstorm缩进

4、在左侧菜单中找到Editor-code style,将Detect and use existing file indents for editing和Endab造婷用痃le EditorConfig support的勾选都去掉

怎么设置webstorm缩进

5、去掉了以后点击右下角的apply(应用),然后点击OK保存

怎么设置webstorm缩进

6、再使用缩进的Table就可以直接缩进4个字符了

怎么设置webstorm缩进
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢