Skip to content

Commit 670aa5c

Browse files
committed
add devcontainer setting
1 parent 6cf1363 commit 670aa5c

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// see https://code.visualstudio.com/docs/remote/devcontainerjson-reference for detail
2+
{
3+
"name": "docker example",
4+
"dockerComposeFile": "./docker-compose.yml",
5+
"service": "mypython",
6+
"workspaceFolder": "/mnt",
7+
"shutdownAction": "stopCompose", // container stops when connection lost
8+
// "shutdownAction": "none", // container does not stop
9+
"settings": {
10+
"python.pythonPath": "/usr/local/bin/python",
11+
"python.linting.flake8Enabled": true,
12+
"python.linting.enabled": true,
13+
"python.linting.pylintEnabled": false,
14+
"editor.formatOnSave": true,
15+
"editor.rulers": [
16+
80
17+
],
18+
"editor.formatOnSave": true,
19+
"editor.highlightActiveIndentGuide": true,
20+
"workbench.tree.renderIndentGuides": "always",
21+
},
22+
"extensions": [
23+
"brainfit.vscode-coverage-highlighter",
24+
"davidanson.vscode-markdownlint",
25+
"jbenden.c-cpp-flylint",
26+
"lextudio.restructuredtext",
27+
"mhutchie.git-graph",
28+
"ms-ceintl.vscode-language-pack-ja",
29+
"ms-python.python",
30+
"ms-toolsai.jupyter",
31+
"ms-vscode.cmake-tools",
32+
"shd101wyy.markdown-preview-enhanced",
33+
"tht13.html-preview-vscode",
34+
"visualstudioexptteam.vscodeintellicode",
35+
"yzhang.markdown-all-in-one",
36+
"njpwerner.autodocstring",
37+
"himanoa.python-autopep8",
38+
],
39+
}

.devcontainer/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: "3"
2+
3+
services:
4+
mypython:
5+
build: ../
6+
volumes:
7+
- ../:/mnt
8+
tty: true

0 commit comments

Comments
 (0)