I have trying to set tab size to 2 and replace with spaces for all file types (including my *.cpp files).
In: /home/user/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
I have:
{
"tab_size": 2,
"translate_tabs_to_spaces": true
}
I have restarted sublime text but tabs are still 4 and tabs instead of spaces in my .cpp files.
Do I need to convert existing *.cpp files after I made this change?
UPDATE:
Apparently you have to do a Select-all go to View -> Indentation and select the indention size of choice on existing files for it to be applied.