Display leading spaces as tabs

It's been mandated that we use 2 spaces of indentation in the code, but I can't tell where the indentations are when it is that narrow. I have to click on an open brace to see where the close brace is. Anyway, what I'd love is a way to tell the editor to use a tab instead of leading spaces, but have the file actually contain the spaces, so I don't accidentally check the tabs in. That is, right now I could hit alt-cmd-L and edit the file, but then all the lines would appear changed, and I'd have to unformat the file before checking it in. Is there a way to make it look to me like I've done that with out changing the file?

Thanks!

3 comments
Comment actions Permalink

Hello, Paul,

sorry for the delay. In this case you can turn on white spaces:

https://www.jetbrains.com/help/ruby/2016.1/appearance-2.html

0
Comment actions Permalink

That's not quite what I'm looking for, but it is close. It looks like it uses a dot for each space. Is there anyway to specify what it uses? If I could specify the character to use, I think I'd have what I want.

 

0
Comment actions Permalink

At the moment there is no possibility to change it, but we have a corresponding request on our tracker so please vote for it:

https://youtrack.jetbrains.com/issue/IDEA-141079

0

Please sign in to leave a comment.