How set the tab size to 2 spaces 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
Hi Luiz,
You can configure tab size at: File | Settings | Code Style | General | Tabs and Indents
Best regards,
Oleg
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
@... 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.