当我将它配置为2个空格时,Intellij会缩进4个空格(LESS) [英] Intellij indents 4 spaces when I have configured it to do 2 spaces (LESS)

查看:386
本文介绍了当我将它配置为2个空格时,Intellij会缩进4个空格(LESS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Intellij IDEA 14上,我尝试在编辑器>代码样式> LESS中设置我的首选项以进行2个空格缩进,但无论我做什么,我的代码最终都会被格式化为4个空格缩进。如何让它为LESS做2个空格缩进?

On Intellij IDEA 14, I have tried to set my preferences in Editor > Code Style > LESS to do 2 space indents but no matter what I do, my code ends up getting formatted with 4 space indents. How do I get it to do 2 space indents for LESS?

推荐答案

如果您的项目有.editorconfig文件,IntelliJ 14默认使用该文件(覆盖你的设置)。如果您绝对不希望使用这些设置,则需要禁用editorconfig插件。

If your project has an ".editorconfig" file, IntelliJ 14 uses that by default (which overwrites your settings). If you absolutely do not wish to use these settings, you need to disable the editorconfig plugin.

这篇关于当我将它配置为2个空格时,Intellij会缩进4个空格(LESS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆