我知道要添加键盘快捷键,我会进入Keyboard Bindings - User
并编辑JSON文件。我已经有很多键盘自定义。
[
{ "keys": ["ctrl+shift+."], "command": "erb" },
{ "keys": ["alt+i"], "command": "expand_tabs" },
{ "keys": ["alt+ctrl+w"], "command": "close_all" },
{ "keys": ["ctrl+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
// swap the keybindings for paste and paste_and_indent
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" },
// swap the keybindings for save and save_all
{ "keys": ["ctrl+s"], "command": "save_all" },
{ "keys": ["ctrl+shift+v"], "command": "save" }
]
我只需要知道打开文件夹的命令。我尝试了显而易见的open_folder
它没有用。
答案 0 :(得分:3)
我在Sublime Text 2 forums找到了答案。命令为prompt_open_folder
。所以我把它添加到我的键盘绑定中。
[
// Open folder shortcut
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder"}
]