小编Leo*_*ada的帖子

将按键绑定到使用 Visual Studio 代码中的当前文件的 shell 命令

有没有办法创建一个键绑定来对文件执行 shell 命令?就像是:

{
    "key": "ctrl+shift+e",
    "command": "run",
    "command": "touch $file",
    "when": "editorTextFocus"
}
Run Code Online (Sandbox Code Playgroud)

我不想使用任务,因为这需要对整个编辑器是全局的,而不是特定的工作区。

visual-studio-code

1
推荐指数
1
解决办法
1781
查看次数

标签 统计

visual-studio-code ×1