简体   繁体   中英

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

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.

转到Preferences > Key Bindings - Default ,找到toggle_side_bar ,删除cmd+b并保存。

and in Windows:

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

Sublime text 不允许您编辑热键的任何文本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM