vscode code workspace
vscode工作区配置示例
{
"folders": [
{
"name": "server",
"path": "backend/server"
},
{
"name": "agent",
"path": "backend/agent"
},
{
"name": "web",
"path": "frontend"
},
{
"name": "root",
"path": "."
},
],
"settings": {
"go.toolsEnvVars": {
"GOPROXY": "https://goproxy.cn,direct",
"GONOPROXY": "none;"
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"editor.formatOnSave": true,
"editor.tabSize": 4,
"files.encoding": "utf8",
"search.exclude": {
"**/node_modules": true,
"**/build": true,
"**/.git": true
},
"files.watcherExclude": {
"**/node_modules/**": true,
"**/build/**": true
},
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"type": "go",
"request": "launch",
"name": "Server",
"cwd": "${workspaceFolder:server}/rest",
"program": "${workspaceFolder:server}/rest",
"mode": "auto",
"args": [
"-f",
"etc/rest-api.yaml"
]
},
{
"type": "go",
"request": "launch",
"name": "Agent",
"cwd": "${workspaceFolder:agent}/rpc",
"program": "${workspaceFolder:agent}/rpc",
"mode": "auto",
"args": [
"-f",
"etc/rpc.yaml"
]
},
{
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder:web}",
"name": "Web",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"dev",
]
}
],
"compounds": [
{
"name": "ALL",
"configurations": [
"Server",
"Agent",
"Web"
],
"stopAll": true
}
]
},
}