Sublimetext2 升华文本使用命令选项板或键绑定打开特定文件
如何使用自定义命令选项板条目或快捷键打开特定文件Sublimetext2 升华文本使用命令选项板或键绑定打开特定文件,sublimetext2,sublimetext,sublimetext3,Sublimetext2,Sublimetext,Sublimetext3,如何使用自定义命令选项板条目或快捷键打开特定文件 我经常打开一些文件,但这些文件与任何特定项目都没有关联。能够使用命令面板或键绑定快速打开它们将非常有用。经过几分钟的反复试验,才找到了方法,但下面介绍了如何操作 要在命令选项板中添加条目以打开特定文件,请将以下模板的修改版本添加到用户Default.sublime commands文件中 // Modify the caption "File Open: Whatever" to something // appropriate and of c
我经常打开一些文件,但这些文件与任何特定项目都没有关联。能够使用命令面板或键绑定快速打开它们将非常有用。经过几分钟的反复试验,才找到了方法,但下面介绍了如何操作 要在命令选项板中添加条目以打开特定文件,请将以下模板的修改版本添加到用户
Default.sublime commands
文件中
// Modify the caption "File Open: Whatever" to something
// appropriate and of course change the file path.
{ "caption": "File Open: Whatever", "command": "open_file",
"args": {"file": "/path/to/whatever"} },
// Modify the key bindings to what you want and change the file path.
{ "keys": ["ctrl+t", "ctrl+w"], "command": "open_file",
"args": {"file": "/path/to/whatever"} },
要添加密钥绑定以打开特定文件,请将以下模板的修改版本添加到您的用户Default(OS).sublime keymap
文件中
// Modify the caption "File Open: Whatever" to something
// appropriate and of course change the file path.
{ "caption": "File Open: Whatever", "command": "open_file",
"args": {"file": "/path/to/whatever"} },
// Modify the key bindings to what you want and change the file path.
{ "keys": ["ctrl+t", "ctrl+w"], "command": "open_file",
"args": {"file": "/path/to/whatever"} },
希望这有帮助