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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -