Sublime Forum

C++ tab indentation not working

#1

Hi,

when coding in C++ the tab key does not insert spaces to the following tab-aligned position. Well, it does, but only from position 1 in current line. But not when entering some code then hitting tab on the same line. Auto-completion works fine.

My default settings file looks like this:

    "tab_size": 4,
    "translate_tabs_to_spaces": false,
    "use_tab_stops": true,
    "detect_indentation": true,
    "auto_indent": true,
    "smart_indent": true,
    "indent_to_bracket": false,

my User settings file is like this:

"tab_size": 4,
    "translate_tabs_to_spaces": true

To make myself a bit more clear. I want to be able to align code like this without having to insert spaces myself:

ClassNameA       varNameA;
SomeOtherClass   varnameB;

Any hints on what may be going wrong?

Cheers

0 Likes