【发布时间】:2021-11-20 08:11:29
【问题描述】:
【问题讨论】:
标签: visual-studio-code cmd terminal
【问题讨论】:
标签: visual-studio-code cmd terminal
我更喜欢在 vscode 中使用Restore Terminals。
安装扩展后,您可以在.vscode文件夹中创建一个restore-terminals.json文件:
{
"artificialDelayMilliseconds": 300,
"keepExistingTerminalsOpen": false,
"runOnStartup": true,
"terminals": [
{
"splitTerminals": [
{
"name": "server",
"commands": ["npm i", "npm run dev"]
},
{
"name": "client",
"commands": ["npm run dev:client"]
},
{
"name": "test",
"commands": ["jest --watch"]
}
]
},
{
"splitTerminals": [
{
"name": "build & e2e",
"commands": ["npm run eslint", "npm run build", "npm run e2e"],
"shouldRunCommands": false
},
{
"name": "worker",
"commands": ["npm-run-all --parallel redis tsc-watch-start worker"]
}
]
}
]
}
【讨论】: