Sublime Forum

Change key bindings for select line and select word

#1

Hi,

I’m new to sublime on Mac OS Lion. I like to customize the default key bindings. I’ve successfully changed “delete line” by changing Preference -> Key Bindings.

I now like to change “select line” and “Select current word” key bindings to my own keybindings. I’ve looked at Preference->Key Bindings, but I couldn’t find keybindings for those mentioned.

How do I change those key bindings?

0 Likes

#2

sublimetext.com/docs/2/settings.html

& you can find all the current bindings by opening up the Key Bindings - Default file and searching for what you want to override. The one’s you’re looking for are on line 134:

{ "keys": "super+l"], "command": "expand_selection", "args": {"to": "line"} }, { "keys": "super+d"], "command": "expand_selection", "args": {"to": "word"} },

…change those to the keybindings you want and put them in Key Bindings - User.

0 Likes

#3

@natebeaty // thank you so much! exactly what i was looking for!

0 Likes