Search code examples
intellij-ideawebstormindentation

How to edit space size for indentation


I feel comfortable working with 4-space indentation. However, most of my colleagues want 2 spaces. The linter is set up for 2 spaces.

Is there any way to make WebStorm displays 2 spaces the same size as 4 spaces? So when the code on my local machine would display the way I want and the way the others want on other machines.


Solution

  • The Elastic Indents plugin seems to do what you want (I haven't tried it myself).