I found a work around for the issue where changing the tab size has no effect on current files. I cut and pasted my code into another code editor, like VS Code, then I pasted it back into CLion with the new tab settings taking effect. Maybe that'll help someone.
Hi Luiz,
You can configure tab size at: File | Settings | Code Style | General | Tabs and Indents
Best regards,
Oleg
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.
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.
I found a work around for the issue where changing the tab size has no effect on current files. I cut and pasted my code into another code editor, like VS Code, then I pasted it back into CLion with the new tab settings taking effect. Maybe that'll help someone.