How set the tab size to 2 spaces

The default tab size in ERB files is et to 4 space, how I can change for 2?


Regards,
Luiz Aguiar

4 comments
Comment actions Permalink

Hi Luiz,

The default tab size in ERB files is et to 4 space, how I can change for 2?

You can configure tab size at: File | Settings | Code Style | General | Tabs and Indents

Best regards,
Oleg

3
Comment actions Permalink

There is no Code Style directly in Settings. There is one in Editor, but there is no General. 

0
Comment actions Permalink

Could you please specify whether you're trying to work with .erb files in WebStorm or RubyMine.

0
Comment actions Permalink

For IntelliJ IDEA

From the diagram above, instead of "Tools", select "Editor" > "Code Style" > [Pick a file type] ...then you will see your settings.


3

Please sign in to leave a comment.