Is there a setting that tells ST3 to use GNU-style braces and indentation?
if (condition)
{
statement;
}
else
{
statement;
}
Notice the braces are indented two spaces from the condition, and the statements are indented two spaces from the braces.
I have the following options set:
"tab_size": 2,
"translate_tabs_to_spaces": true
There are only two behaviors I want to correct:
When I type if (condition)
and then hit enter, it places my cursor indented two spaces from the condition; however, as soon as I hit the “{” key, it pushes it back to the same level as the conditional. To correct this manually, I always need to move my cursor before the brace and insert an extra tab.
If I place my cursor after the “}” and press enter, it puts me at the same level as the brace. To correct this manually, I always need to hit backspace.