-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer.json
More file actions
53 lines (53 loc) · 1.53 KB
/
.devcontainer.json
File metadata and controls
53 lines (53 loc) · 1.53 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/typescript-node
{
"name": "Starlight Dev Container",
"image": "mcr.microsoft.com/devcontainers/typescript-node",
"forwardPorts": [
4321
],
"portsAttributes": {
"4321": {
"label": "Astro Dev Server",
"onAutoForward": "notify"
}
},
// Add the IDs of extensions you want installed when the container is created.
"customizations": {
"vscode": {
"extensions": [
"astro-build.astro-vscode",
"vunguyentuan.vscode-css-variables",
"esbenp.prettier-vscode",
"yzhang.markdown-all-in-one",
"unifiedjs.vscode-mdx",
"davidanson.vscode-markdownlint",
"jock.svg"
],
"settings": {
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"files.trimTrailingWhitespace": true
}
}
},
"postCreateCommand": "npm install",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// moved settings under customizations.vscode.settings
}