How can I change that? I don't see any option in the preferences nor do I know of any plugin.
I want to avoid this style:
class Foo
{
private:
void bar();
}
EDIT:
I'm using C++ and my style is like this:
class Foo
{
private: // Half tab (or two spaces)
void bar(); // One tab
}
While I'm used to simply typing two spaces then private:
and hit Enter
,now I have to type private:
hit Enter
and navigate back to private
to re-indent it. It's kind of a workflow kill.
Found the best way to disable auto unindent on public
private
and protected
keywords, by editing the Indentation Rules.tmPreferences
file in Packages/C++. What I did is comment out the line:
| ^ \s* (public|private|protected): \s* $
under the decreaseIndentPattern
key.