How can I adjust the sublime to always use 4 spaces?

I know that the sublime has the following space related parameters:

Preferences.sublime settings

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

I think it means:

  • tab_size: When I click Tab, I get 4 spaces (or tab length 4, depending on how it makes tabs or spaces).
  • translate_tabs_to_spaces: when I save the document, it translates the tabs into spaces.
  • use_tab_stops: (only for spaces) Sublime will simply not enter 4 spaces, but will ultimately add fewer spaces to advance to the next tab position.

But although I have this configuration, I always see:

enter image description here

My project.sublime-projecthas:

...
"settings":
{
    "tab_size": 4,
    "translate_tabs_to_spaces": true,
    "use_tab_stops": true
}
...

, 4 ? ( Makefile, . 4, )

Linux Mint 16 Petra Sublime Text build 3059

+4
1

, , , 2 , ST , 1.

"detect_indentation": false
, .

+3

Source: https://habr.com/ru/post/1539719/


All Articles