u123
u123

Reputation: 16287

sublime 3 text and tab size for cpp files

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.

Upvotes: 1

Views: 761

Answers (1)

u123
u123

Reputation: 16287

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.

Upvotes: 1

Related Questions