Настройте VSCode для выполнения другой задачи
У меня есть проект TypeScript в Visual Studio Code со следующей задачей:
{
"version": "0.1.0",
// The command is tsc.
"command": "tsc",
// Show the output window only if unrecognized errors occur.
"showOutput": "silent",
// Under windows use tsc.exe. This ensures we don't need a shell.
"windows": {
"command": "tsc"
},
"isShellCommand": true,
// args is the program to compile.
"args": [],
// use the standard tsc problem matcher to find compile problems in the output.
"problemMatcher": "$tsc"
}
Это хорошо работает, когда мы нажимаем "Ctrl + Shift + B", чтобы построить.
Возможно ли иметь другую задачу, что когда мы нажимаем «F5» для запуска / отладки, она запускает команду через командную строку?
Спасибо.