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

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

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

注意!!!

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

相关推荐
航Hang*2 天前
前端项目2-01:个人简介页面
前端·经验分享·html·css3·html5·webstorm
航Hang*16 天前
WEBSTORM前端 —— 第2章:CSS —— 第3节:背景属性与显示模式
前端·css·css3·html5·webstorm
程序员Bears17 天前
IntelliJ IDEA 2025系列通用软件安装教程(Windows版)
ide·windows·pycharm·webstorm
航Hang*17 天前
WEBSTORM前端 —— 第2章:CSS —— 第2节:文字控制属性与CSS特性
前端·css·css3·html5·webstorm
FOREVER-Q1 个月前
WebStorm中Gitee账号的密码登录与令牌登录设置
ide·gitee·webstorm
kovlistudio1 个月前
红宝书第二十九讲:详解编辑器和IDE:VS Code与WebStorm
开发语言·前端·javascript·ide·学习·编辑器·webstorm
谢尔登1 个月前
【已解决】Webstorm 每次使用 git pull/push 都要输入令牌/密码登录
ide·git·webstorm
小妤妤1 个月前
webStorm 控制台失效,无法输入
ide·webstorm
中二少年学编程2 个月前
webstorm调试模式报错:Cannot detect a launch configuration
webstorm
qq2517083392 个月前
JetBrains(全家桶: IDEA、WebStorm、GoLand、PyCharm) 2024.3+ 2025 版免费体验方案
pycharm·intellij-idea·免费·webstorm·2025·非破解