Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime: Shortcut Key to Confirm Replace All?

Tags:

sublimetext2

After I hit Ctrl-H and enter my search/replace terms, is there another key combination I can hit to actually execute that command, without having to use the mouse to press the Replace All button?

I am not a mouse guy, and would prefer to do it from the keyboard.

Thanks

like image 855
EdgeCase Avatar asked Oct 19 '13 16:10

EdgeCase


1 Answers

The shortcut for replace all should be "ctrl+alt+enter"

Here it is in the Keybinding JSON.

{ "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": true},
     "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},

You can see the full list of key bindings / shortcuts by going to the Preferences Menu then Keybindings -> Keybindings - Default . It will show a json file full of all the shortcuts.

To create your own shortcut by going to the Preferences Menu then Keybindings -> Keybindings - User, just add your own entry to the json file, in the same format as the json file openend by doing the above.

like image 108
James Campbell Avatar answered Nov 08 '22 04:11

James Campbell