sublimetext2 - Sublime Text 2 unindents labels and access modifiers by default -
how can change that? don't see option in preferences nor know of plugin.
i want avoid style:
class foo { private: void bar(); }
edit:
i'm using c++ , style this:
class foo { private: // half tab (or 2 spaces) void bar(); // 1 tab }
while i'm used typing 2 spaces private:
, hit enter
,now have type private:
hit enter
, navigate private
re-indent it. it's kind of workflow kill.
found best way disable auto unindent on public
private
, protected
keywords, editing indentation rules.tmpreferences
file in packages/c++. did comment out line:
| ^ \s* (public|private|protected): \s* $
under decreaseindentpattern
key.
Comments
Post a Comment