Reuben
Reuben

Reputation: 2751

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!!

Upvotes: 11

Views: 5656

Answers (4)

Lip Lin
Lip Lin

Reputation: 9

Sublime text won't let you edit any of the text for the hotkeys.

Upvotes: 0

Yar
Yar

Reputation: 7476

and in Windows:

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

Upvotes: 0

Timmy
Timmy

Reputation: 100

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

Upvotes: 3

Nicholas Riley
Nicholas Riley

Reputation: 44361

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.

Upvotes: 23

Related Questions