修改vscode 编译配置

This commit is contained in:
liyunjia 2024-06-19 20:53:33 +08:00
parent 991d1e478b
commit cf5c5286c0
2 changed files with 7 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@ -8,7 +8,7 @@
"program": "${workspaceRoot}/target/debug/${workspaceFolderBasename}", "program": "${workspaceRoot}/target/debug/${workspaceFolderBasename}",
"args": [], "args": [],
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"preLaunchTask":"build", "preLaunchTask":"rust: cargo build",
} }
] ]
} }

9
.vscode/tasks.json vendored
View File

@ -2,13 +2,16 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"type": "cargo", "type": "process",
"command": "build", "command": "cargo",
"args": [
"build"
],
"problemMatcher": [ "problemMatcher": [
"$rustc" "$rustc"
], ],
"group": "build", "group": "build",
"label": "build" "label": "rust: cargo build"
} }
] ]
} }