Sublime Forum

Sublime 3103 python source file indent size not correct!

#1

sublime 3103 python source file indent size not correct !

I set
tab_size : 4,

but when I edit python source file , the auto indent tab size is always 2

How to correct ?

Thanks !

0 Likes

#2

Do you have a syntax-specific configuration, perhaps? With a Python file open, go to Preferences > Settings - More > Syntax Specific - User and see if you have a tab size set there.

0 Likes

#3

Also check to see that your project isn’t using an .editorconfig file. There is a module for Sublime that uses editorconfig files.

0 Likes

#4

Syntax Specific is empty !

0 Likes

#5

I haven’t install editorconfig

0 Likes

#6

I add line:
{
“tab_size”:4
} to Syntax Specific
and It works ok

Thanks !

0 Likes