Sublime Forum

Yet another user confused by tabs

#1

In Preferences.sublime-settings, I have

"tab_size": 4, "translate_tabs_to_spaces": false,

And I have the same in XML.sublime-setting

But the visual space on-screen is 8 spaces for tabs.

Because some XML files are heavily indented, the lines move quickly to the right and I don’t want such deep visual indents.

And other users in my group all use tabs, so they don’t want me to substitute spaces for tabs when I edit files.

What do I need to do to get the indent on-screen to appear to be 4 spaces wide?

Thanks!
Roger_S

PS: I’m not using a mono-spaced font.

0 Likes

#2

Sublime struggles with proportional fonts. Simply using a monospaced font should fix your issue.

0 Likes

#3

Did you have checked that the information panel on the bottom right of ST display “Tab Size: 4” ?

0 Likes

#4

If the above comments don’t help, it’s also possible that you have an 8-space tab setting in a more-specific preference file (perhaps for a project, or syntax specific).

You can see an outline of settings precedence at sublimetext.com/docs/3/settings.html

0 Likes