Displaying 2-space indents as 4-space tabs but saving as 2-spaces?

I'm working on code built from the VS Code editor, but for some reason Microsoft felt the need to make indentation 2 spaces by default unlike most other editors.

So when I open the project, it's kind of hard to read, and saving the file as 2-space tab of course means mixed indentation which we don't want (and may make unintentional commit changes).

Is there some way to have 2 spaces together show up as a 4-space tab (and be functional as such so the arrow keys treat it as a tab) but save a tab as 2-spaces?

1 comment

No, unfortunately there's no way for this. You can submit this as a feature request at our tracker.


Please sign in to leave a comment.