VSCode - how to keybind an external command
问题 Im trying to run "puppet-lint -f (currently open file) The Puppet extenstion provides puppet-lint check, but doesnt auto fix any issues, it just gives warnings. How can I add a keyboard shortcut to run "puppet-lint -f" on a file Im currently editing? Thanks 回答1: I don't know anything about the Puppet extension but in general here is how you can bind a shell command to a keychord: Make a task for it (.vscode/tasks.json): { "version": "2.0.0", { "label": "node version", "command": "node", "args