Sublime Forum

Detect_indentation: false not working corectly

#1

Hello,

On Sublime Text 4, Stable Channel, Build 4169 I have the following problem:

The settings are:

{
    "detect_indentation": false,
    "tab_size": 4,
    "translate_tabs_to_spaces": true,
}

But when I open a new file sometimes it happens that when I hit tab key, a tab character is inserted instead of 4 spaces.

0 Likes

#2

I would guess there is a plugin which involves in this. E.g., EditorConfig.

0 Likes

#3

No, I am not using any configuration plugins

0 Likes

#4

Does it happen in safe mode?

0 Likes

#5

No, the issue is not happening in safe mode.

0 Likes

#6

Then this is most likely being caused by a plugin you’ve installed.

0 Likes

#7

I was able to find the problem. It is not related to plugins at all.
It looks like the editor can save some settings in the .sublime-project file also:

"settings":
	{
		"translate_tabs_to_spaces": true
	}

and this overwrites the default behavior, and that’s fine.

But I observed that the file I was trying to edit is not part of the project (active project’s settings will apply for that window even if the file is not part of the project).

0 Likes