Shortcut for running terminal command in VS code

后端 未结 4 804
谎友^
谎友^ 2020-12-29 07:38

Is there a way to make a hotkey for running specific command in terminal? Say I want to compile my TypeScript files by hotkey and not to type to terminal \"tsc\" or any othe

4条回答
  •  梦谈多话
    2020-12-29 08:12

    in addition to @mark ..

    "args": { "text": "npm run-script test | tee /dev/null \u000D" }

    this way it will run any script including bash scripts, that doesn't conflict to their arguments (e.g try rsync without the tee)

提交回复
热议问题