Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change keyboard shortcut for sidebar in sublime text 2

Currently the shortcut to hide or show the sidebar is cmd K, cmd B.

I would like it just be cmd K.

Is there a way to do this? Thanks!!

like image 889
Reuben Avatar asked Aug 15 '12 00:08

Reuben


2 Answers

Sure, you can edit it like any other keyboard shortcut from Sublime Text 2 > Preferences > Key Bindings - User:

[
    { "keys": ["super+k"], "command": "toggle_side_bar" }
]

Note that this will disable all the other shortcuts with a ⌘K prefix, such as the ones for converting case and folding, even though they'll still show up in the menus.

like image 145
Nicholas Riley Avatar answered Nov 04 '22 06:11

Nicholas Riley


Go to Preferences > Key Bindings - Default, find toggle_side_bar, remove cmd+b and save.

like image 3
Timmy Avatar answered Nov 04 '22 08:11

Timmy