How set the tab size to 2 spaces Follow Luiz Aguiar Created June 21, 2010 15:16 The default tab size in ERB files is et to 4 space, how I can change for 2?Regards,Luiz Aguiar
You can configure tab size at: File | Settings | Code Style | General | Tabs and Indents
There is no Code Style directly in Settings. There is one in Editor, but there is no General.
Could you please specify whether you're trying to work with .erb files in WebStorm or RubyMine.
For IntelliJ IDEA
From the diagram above, instead of "Tools", select "Editor" > "Code Style" > [Pick a file type] ...then you will see your settings.
I did found Code Style and I did changed the tab size to 2.
But the space in the code is not changing
Ugpulse This doesn't have any effect for me.
The new tab size has no effect when trying to edit existing files. Applies only to new ones. Frustrating.