Skip to content

Commit 06955cb

Browse files
committed
chore: add formatter settings
1 parent b1a1bab commit 06955cb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
77
"features": {
88
"ghcr.io/devcontainers/features/node:1": {}
9+
},
10+
// Configure tool-specific properties.
11+
"customizations": {
12+
"vscode": {
13+
"settings": {
14+
"editor.formatOnSave": true,
15+
"[rust]": {
16+
"editor.defaultFormatter": "rust-lang.rust-analyzer"
17+
}
18+
}
19+
}
920
}
1021

1122
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
@@ -26,9 +37,6 @@
2637
// Use 'postCreateCommand' to run commands after the container is created.
2738
// "postCreateCommand": "rustc --version",
2839

29-
// Configure tool-specific properties.
30-
// "customizations": {},
31-
3240
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
3341
// "remoteUser": "root"
3442
}

0 commit comments

Comments
 (0)