开发容器配置文件去除注释
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
"name": "Rust",
|
"name": "Rust",
|
||||||
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
|
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
|
||||||
|
|
||||||
// 先构建项目,但不自动运行
|
|
||||||
"postStartCommand": "cargo build && clear",
|
"postStartCommand": "cargo build && clear",
|
||||||
|
|
||||||
"customizations": {
|
"customizations": {
|
||||||
@@ -10,11 +9,11 @@
|
|||||||
"settings": {},
|
"settings": {},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"streetsidesoftware.code-spell-checker",
|
"streetsidesoftware.code-spell-checker",
|
||||||
"rust-lang.rust-analyzer", // 添加 Rust 语言支持
|
"rust-lang.rust-analyzer",
|
||||||
"vadimcn.vscode-lldb" // 添加 LLDB 调试器支持
|
"vadimcn.vscode-lldb"
|
||||||
],
|
],
|
||||||
|
|
||||||
// 添加调试配置
|
|
||||||
"debug": {
|
"debug": {
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
@@ -29,7 +28,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// 添加构建任务
|
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
@@ -46,7 +44,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 转发应用端口(根据你的实际端口修改)
|
|
||||||
"forwardPorts": [8080],
|
"forwardPorts": [8080],
|
||||||
"portsAttributes": {
|
"portsAttributes": {
|
||||||
"8080": {
|
"8080": {
|
||||||
|
|||||||
Reference in New Issue
Block a user