Sublime Forum

Sublime 3 reverting back to 'Indent using spaces'?

#1

Hi guys,

I feel like this is an easy fix or something really obvious that I’m missing, but every time I close a file then open it again I find that my ‘Spaces: 4’ setting has been automatically changed back to ‘Indent using spaces’ and ‘Spaces 2’.
Anyone have an idea how to stop this? I love my tab indenting and really hate everything being so close together.

In my actual preferences I have “tab_size”: 4, and “translate_tabs_to_spaces”: false - which doesn’t help and is the only advice I’ve been able to find by googling.

It’s getting really frustrating to change this manually every single time I open or reopen a file.

Thanks!

0 Likes

#2

Think about whether there is a editorconfig file

0 Likes

#3

You may want to check what you have the following setting set to:

    // Set to false to disable detection of tabs vs. spaces on load
    "detect_indentation": true,

As seen here, it defaults to being turned on, in which case it may be deciding that your file is indented differently than what you might expect it to be.

0 Likes

#4

You’re a legend! That did it :slight_smile:

Thanks very much it was driving me crazy.

0 Likes