d-ywbq
Last Updated: September 09, 2019
·
1.293K
· _dhar

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!

3 Responses
Add your response

12702

The best!

over 1 year ago ·
12713

cool!

over 1 year ago ·
12724

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 ·