I’ve seen this reported and discussed several times on stackoverflow, yet none of the solutions provided there are working for me. I have the following settings in both my user and C++ syntax-specific preferences:
“always_show_minimap_viewport”: true,
“caret_extra_bottom”: 5,
“caret_extra_top”: 5,
“auto_complete_commit_on_tab”: true,
“auto_find_in_selection”: true,
“color_scheme”: “Packages/Color Scheme - Default/Mac Classic.tmTheme”,
“ensure_newline_at_eof_on_save”: true,
“highlight_line”: true,
“highlight_modified_tabs”: true,
“ignored_packages”:
[
“Vintage”
],
“indent_guide_options”:
[
“draw_active”
],
“indent_to_bracket”: true,
“open_files_in_new_window”: false,
“translate_tabs_to_spaces”: true,
“trim_trailing_white_space_on_save”: true,
“detect_indentation”: false,
“tab_size”: 4
However, whenever I open a C++ file, the “Spaces” field in the lower right corner shows “2” and the indent falls to 2 spaces. I can reset it to “4”, but I don’t understand why my preferences are being ignored. Any advice?
This is Sublime Text 3, build 3176
Ralph