Sublime Forum

Inconsistent spacing. Tabs are 4 and 2 spaces can't convert

#1

I cannot for the life of me get all tabs to be consistently 4 spaces in this CSS document.

Here are my user settings:

{
    "detect_indentation": true,
    "tab_completion": false,
    "color_scheme": "Packages/1337 Color Scheme/1337.tmTheme",
    "font_size": 15,
    "ignored_packages":
    [
        "Vintage"
    ]
}

I’m pretty new to sublime text so it may be something easy. I tried searching but did not find an answer. Thanks for the help!

0 Likes

#2

try adding “tab_size”: 4,

You can also change the tab size in the status bar, bottom right.

If your file already has mixed tabs and spaces, you can try

view > indentation > convert indentation to tabs (or spaces)

ST will not prettify existing code for you. (You’ll have to use some other tool for that.) It’ll only keep the indentation consistent from this point on.

1 Like