Skip to content

Commit 21a73d8

Browse files
authored
Add codespace config (#54)
This sets up codespaces with Powershell support.
1 parent 64ff1f8 commit 21a73d8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/powershell
3+
{
4+
"name": "PowerShell",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/powershell:lts-debian-11",
7+
"features": {
8+
"ghcr.io/devcontainers/features/common-utils:2": {},
9+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
10+
"ghcr.io/devcontainers/features/powershell:1": {},
11+
"ghcr.io/devcontainers/features/dotnet:1": {}
12+
},
13+
14+
"postCreateCommand": "sudo chsh vscode -s \"$(which pwsh)\" && ",
15+
16+
// Configure tool-specific properties.
17+
"customizations": {
18+
// Configure properties specific to VS Code.
19+
"vscode": {
20+
// Set *default* container specific settings.json values on container create.
21+
"settings": {
22+
"terminal.integrated.defaultProfile.linux": "pwsh"
23+
},
24+
25+
// Add the IDs of extensions you want installed when the container is created.
26+
"extensions": [
27+
"ms-vscode.powershell"
28+
]
29+
}
30+
}
31+
32+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
33+
// "forwardPorts": [],
34+
35+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
36+
// "remoteUser": "root"
37+
}

0 commit comments

Comments
 (0)