Sublime Forum

Project settings not overriding user settings?

#1

According to the project-settings documentation, project-specific settings should override user-specific settings (but not syntax-specific settings).

In my Packages/User/Preferences.sublime-settings I have "tab_size": 2, and my project file looks like this:

{
	"folders":
	[
		{
			"path": "."
		}
	],
    "settings":
    {
        "tab_size": 4
    }
}

I have no Python syntax settings file, but all Python files in my project are opened with tab_size = 2 instead of 4… This isn’t the case for other file types in the project.

Running grep -r tab_size ~/Library/Application\ Support/Sublime\ Text\ 3/ to really don’t have any Python syntax settings file, I see results only from Packages/User/Preferences.sublime-settings and Local/Session.sublime_session.

Anyone has any idea what’s going on?

0 Likes

#2

OK, looking at my post, I saw different indent levels of the “folders” and the “settings” section, which made me suspicious.

It appears the “folders” section was indented with tabs, and the “settings” section with spaces.

When I changed the “settings” section to also use tabs, it seemed to resolve the issue…

0 Likes