Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij indents 4 spaces when I have configured it to do 2 spaces (LESS)

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?

Settings

like image 847
Muhd Avatar asked Jan 13 '15 16:01

Muhd


1 Answers

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.

like image 124
uwolfer Avatar answered Oct 06 '22 10:10

uwolfer