Skip to content

Commit 54fb3fe

Browse files
authored
A GitHub repository template to create an empty rust based repository with a devcontainer.
1 parent 33ad54d commit 54fb3fe

File tree

4 files changed

+446
-8
lines changed

4 files changed

+446
-8
lines changed

.devcontainer/devcontainer.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,30 @@
1111
"workbench.activityBar.location": "top",
1212
"debug.toolBarLocation": "docked",
1313
"editor.formatOnSave": true,
14-
"amazonQ.telemetry": false
14+
"amazonQ.telemetry": false,
15+
"[markdown]": {
16+
"editor.defaultFormatter": "esbenp.prettier-vscode"
17+
},
18+
"[rust]": {
19+
"editor.defaultFormatter": "esbenp.prettier-vscode"
20+
},
21+
"[json]": {
22+
"editor.defaultFormatter": "esbenp.prettier-vscode"
23+
},
24+
"[yaml]": {
25+
"editor.defaultFormatter": "esbenp.prettier-vscode"
26+
}
1527
},
1628
"extensions": [
1729
"github.vscode-pull-request-github",
1830
"github.vscode-github-actions",
1931
"oderwat.indent-rainbow",
20-
"yzhang.markdown-all-in-one",
2132
"quicktype.quicktype",
22-
"jebbs.plantuml",
23-
"foxundermoon.shell-format",
2433
"ahebrank.yaml2json",
2534
"amazonwebservices.amazon-q-vscode",
26-
"Gruntfuggly.todo-tree"
35+
"Gruntfuggly.todo-tree",
36+
"esbenp.prettier-vscode"
2737
]
2838
}
2939
}
30-
}
40+
}

.vscode/launch.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug executable 'rust-codespace-template'",
11+
"cargo": {
12+
"args": [
13+
"build",
14+
"--bin=rust-codespace-template",
15+
"--package=rust-codespace-template"
16+
],
17+
"filter": {
18+
"name": "rust-codespace-template",
19+
"kind": "bin"
20+
}
21+
},
22+
"args": [],
23+
"cwd": "${workspaceFolder}"
24+
},
25+
{
26+
"type": "lldb",
27+
"request": "launch",
28+
"name": "Debug unit tests in executable 'rust-codespace-template'",
29+
"cargo": {
30+
"args": [
31+
"test",
32+
"--no-run",
33+
"--bin=rust-codespace-template",
34+
"--package=rust-codespace-template"
35+
],
36+
"filter": {
37+
"name": "rust-codespace-template",
38+
"kind": "bin"
39+
}
40+
},
41+
"args": [],
42+
"cwd": "${workspaceFolder}"
43+
}
44+
]
45+
}

0 commit comments

Comments
 (0)