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

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

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

注意!!!

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

相关推荐
XujiRe8 天前
解决在IDEA、webstorm里Git特别慢的问题
git·intellij-idea·webstorm
光头才能变强11 天前
Mac安装WebStorm for Mac v2025.1.1
ide·macos·webstorm
我是火山呀11 天前
WebStorm转VSCode:高效迁移指南
ide·vscode·intellij-idea·intellij idea·webstorm
小的时候可菜了1 个月前
Webstorm 前端断点调试
前端·ide·webstorm
LotteChar1 个月前
WebStorm vs VSCode:前端圈的「豆腐脑甜咸之争」
前端·vscode·webstorm
四荒八极2 个月前
WebStorm编辑器侧边栏
编辑器·webstorm
2501_922232942 个月前
JetBrains 2025 全家桶 11合1 IDEA + PyCharm + WebStorm + DataGrip等(Mac)
pycharm·intellij-idea·webstorm
航Hang*3 个月前
WEBSTORM前端 —— 第3章:移动 Web —— 第4节:移动适配-VM
前端·笔记·edge·less·css3·html5·webstorm
航Hang*3 个月前
WEBSTORM前端 —— 第3章:移动 Web —— 第2节:空间转换、转化
前端·笔记·程序人生·edge·css3·html5·webstorm
航Hang*3 个月前
WEBSTORM前端 —— 第3章:移动 Web —— 第3节:移动适配
程序人生·edge·less·css3·html5·webstorm·rem