webstorm 设置html、JS文件自动缩进为4个空格不生效,如何解决?

设置代码行缩进为4个空格不生效,解决办法如下:

依次打开settings -> Editor -> Code Style 选择要设置的文件类型进行设置 或 设置当前所在文件的缩进

注意!!!

设置完后有可能仍然不生效, 设置中选择Plugins -> 搜索editorconfig将其取消勾选,点击Apply,重启webstorm即可生效。

相关推荐
我最爱吃鱼香茄子18 天前
终极方案:JetBrains IDE永久解放C盘空间
计算机视觉·性能优化·电脑·笔记本电脑·intellij-idea·程序员创富·webstorm
hdsoft_huge1 个月前
全开源数字孪生系统搭建方案:全套技术文档
vue.js·开源·node.js·echarts·webstorm
KAI丶2 个月前
【WebStorm】运行报错:env: node: No such file or directory
webstorm
zhongerzixunshi2 个月前
spca软件过程能力评估和软件能力成熟度评估
webstorm
凯丨2 个月前
JetBrains PyCharm、GoLand、PhpStorm、WebStorm 卡死问题
pycharm·phpstorm·webstorm
|晴 天|2 个月前
从零打造现代化个人博客:Vue 3 + TypeScript + Element Plus 完整实战
javascript·css·chrome·typescript·html5·webstorm
.CcC..2 个月前
Burp 配置
webstorm
大脸胖柴3 个月前
webStorm+gitLab操作学习
学习·gitlab·webstorm
杂家3 个月前
WebStorm搭建Vue3+Element Plus
ide·webstorm
ycjunhua3 个月前
Notebooklm for windows本地安装使用
python·webstorm