sublimetext2 - Sublime text comment indentation issue with Ruby -
i use sublimetext since few months ruby, , have issue comment auto-indentation. indentation uses comment's indentation, , indent following code using indentation. expect auto-indentation ignore(at least) or set indent of previous code (at best), not take comment's indentation @ :
all colleagues use editor have same issue here's sample code re-indented sublimetext
class test def method1 end #bad indentation def method2 somecode end def method3 somecode end end
wanted :
class test def method1 end #bad indentation def method2 somecode end def method3 somecode end end
i did quickfix on ~/.config/sublime-text-2/packages/default/indentation rules - comments.tmpreferences
replacing
<key>scope</key> <string>comment</string> <key>settings</key> <dict> <key>preserveindent</key> <true/> </dict>
with
<key>scope</key> <string>comment</string> <key>settings</key> <dict> <key>preserveindent</key> <false/> </dict>
but affects default behavior, , prefer affect ruby's behavior. has greater solution ?
i put in user settings file:
preferences -> settings -- user :
{ "color_scheme": "packages/theme - refined/color schemes/danro.tmtheme", "ensure_newline_at_eof_on_save": true, "font_size": 18.0, "hot_exit": false, "ignored_packages": [ "vintage" ], "remember_open_files": false, "save_on_focus_lost": true, "tab_size": 2, "translate_tabs_to_spaces": true
}
i tried recreate problem , couldn't these setting enforced.