-
Notifications
You must be signed in to change notification settings - Fork 0
/
.devcontainer.json
41 lines (39 loc) · 1.15 KB
/
.devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "Rust",
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
"mounts": [
{
"source": "cargo-cache",
"target": "/usr/local/cargo",
"type": "volume"
}
],
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"rust-lang.rust-analyzer",
"serayuzgur.crates",
"tamasfe.even-better-toml"
],
"settings": {
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
".env": ".env.local, .env.*, .env.*.local",
"Cargo.toml": "Cargo.lock"
},
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
}
}
}
}
}