Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change keyboard shortcut in sublime text 2

How do i change the current keys for selecting all with the multiple cursor to CMD + G?

like image 734
McKeene Avatar asked Feb 17 '13 19:02

McKeene


People also ask

How do I reassign a keyboard shortcut?

To reassign a keyConnect the keyboard that you want to configure. Select the Start button, and then select Microsoft Mouse and Keyboard Center. From the displayed list of key names, select the key that you want to reassign. In the command list of the key that you want to reassign, select a command.

What is Ctrl D in sublime?

Ctrl + D in SublimeText is "Quick Add Next." This appears to be equivalent to Ctrl + B in Brackets, which is "Add next match to Selection" on the Find menu.

What are key bindings?

Noun. key binding (plural key bindings) (computing) A key, or key combination, which, when pressed, causes something to happen. synonym ▲ Synonym: keybind. I changed the key binding for pause to the Escape key.


1 Answers

The keyboard shortcuts are referrred to as key bindings in Sublime Text 2. There is documentation here and here that will show you how to manipulate them. Click "Preferences" > "Default Key Bindings" to view them. Copy and paste the ones you want to edit into "Preferences" > "User Key Bindings"

e.g.

 <binding key="cmd+t,u" command="upperCase"/>

As noted in the comments, the config is now in json format for newer Sublime Text.

e.g.

    { "keys": ["cmd+t,u"], "command": "snake_case" }
like image 53
Rachel Gallen Avatar answered Oct 21 '22 14:10

Rachel Gallen