Gamer style Sublime Text Key Bindings
On MacOS, Sublime Text 2 Default Key Bindings already has the following :
{ "keys": ["ctrl+super+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+super+down"], "command": "swap_line_down" },
By adding those 2 lines to your User Key Binding, you'll be able to move the current line/selection around like a pro Pac-Man gamer :
{ "keys": ["ctrl+super+right"], "command": "indent" },
{ "keys": ["ctrl+super+left"], "command": "unindent" }
Have fun!
Written by Olivier Audard
Related protips
3 Responses

The best!
over 1 year ago
·

cool!
over 1 year ago
·

I've actually wanted to write a sublime plugin that will, instead of indenting the current line with something like c-super-left/right, will move the current word around, like how your cursor will move while holding alt(mac)/ctrl(others), which would be especially useful for rearranging array/list elements, etc.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime text
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#