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

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

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

注意!!!

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

相关推荐
郝亚军3 天前
How to create a vue project via webstorm?
前端·vue.js·webstorm
来自内蒙古的田园蒙牛9 天前
WebStorm 接入 Ollama:使用 Qwen2.5-Coder 在本地运行 AI 编程助手
ide·人工智能·webstorm
我最爱吃鱼香茄子2 个月前
终极方案:JetBrains IDE永久解放C盘空间
计算机视觉·性能优化·电脑·笔记本电脑·intellij-idea·程序员创富·webstorm
hdsoft_huge2 个月前
全开源数字孪生系统搭建方案:全套技术文档
vue.js·开源·node.js·echarts·webstorm
KAI丶3 个月前
【WebStorm】运行报错:env: node: No such file or directory
webstorm
zhongerzixunshi3 个月前
spca软件过程能力评估和软件能力成熟度评估
webstorm
凯丨3 个月前
JetBrains PyCharm、GoLand、PhpStorm、WebStorm 卡死问题
pycharm·phpstorm·webstorm
|晴 天|3 个月前
从零打造现代化个人博客:Vue 3 + TypeScript + Element Plus 完整实战
javascript·css·chrome·typescript·html5·webstorm
.CcC..3 个月前
Burp 配置
webstorm
大脸胖柴4 个月前
webStorm+gitLab操作学习
学习·gitlab·webstorm