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

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

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

注意!!!

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

相关推荐
小的时候可菜了9 天前
Webstorm 前端断点调试
前端·ide·webstorm
LotteChar11 天前
WebStorm vs VSCode:前端圈的「豆腐脑甜咸之争」
前端·vscode·webstorm
四荒八极1 个月前
WebStorm编辑器侧边栏
编辑器·webstorm
2501_922232942 个月前
JetBrains 2025 全家桶 11合1 IDEA + PyCharm + WebStorm + DataGrip等(Mac)
pycharm·intellij-idea·webstorm
航Hang*2 个月前
WEBSTORM前端 —— 第3章:移动 Web —— 第4节:移动适配-VM
前端·笔记·edge·less·css3·html5·webstorm
航Hang*2 个月前
WEBSTORM前端 —— 第3章:移动 Web —— 第2节:空间转换、转化
前端·笔记·程序人生·edge·css3·html5·webstorm
航Hang*2 个月前
WEBSTORM前端 —— 第3章:移动 Web —— 第3节:移动适配
程序人生·edge·less·css3·html5·webstorm·rem
有很多梦想要实现2 个月前
Nest全栈到失业(四):半小时图书管理系统-Book
开发语言·前端·javascript·数据库·typescript·webstorm
好奇的菜鸟2 个月前
如何使用 WebStorm 编写第一个 Node.js 项目
ide·node.js·webstorm
有很多梦想要实现2 个月前
Nest全栈到失业(一):Nest基础知识扫盲
前端·javascript·后端·typescript·webstorm