Saturday, March 1, 2014

Sublime Text key bindings to jump out of parans, quotes and brackets like in Eclipse

One of the best features of Eclipse is having the "Enter" key move you outside of the parentheses, ticks, or brackets of a method.  That shortcut is so ingrained in me after a decade of Eclipse usage that I doubt I will ever be able to forget it.

Sublime Text is a great editor, but it doesn't have that shortcut.  I added it to Preferencs -> Key Bindings -> User

{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context": 
  { "key": "following_text", "operator": "regex_match", "operand": "[\"')}](.|$)", "match_all": true  }