-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdevcontainer.json
More file actions
68 lines (63 loc) · 2.62 KB
/
devcontainer.json
File metadata and controls
68 lines (63 loc) · 2.62 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
// "mounts": ["source=xxxx,target=xxxx,type=bind"]
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
// "python.defaultInterpreterPath": "/venv/bin/python3",
// "window.zoomLevel": 1, // 視窗縮放
"editor.fontSize": 22,
"editor.lineHeight": 26,
// "terminal.integrated.fontFamily": "MesloLGS NF",
// "editor.fontFamily": "MesloLGS NF",
"extensions.ignoreRecommendations": true, // 是否忽略顯示建議的套件
"files.trimTrailingWhitespace": true, // 儲存的時候,會幫你自動過濾多餘的空格
"files.encoding": "utf8", // 設定預設編碼
"files.autoGuessEncoding": false,
"files.autoSave": "onFocusChange", // 是否自動儲存檔案
// "files.autoSave": "afterDelay",
// "files.autoSaveDelay": 500,
// "workbench.colorTheme": "One Dark Pro", // 需安裝 One Dark Pro
"editor.selectionClipboard": false, // 關閉滑鼠滾輪中鍵複製功能
"editor.stickyScroll.enabled": true, // Sticky Scroll 預設是打開的
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
// "source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
},
"editor.defaultFormatter": "charliermarsh.ruff" // 需要安裝 Ruff
// "ruff.organizeImports": true
},
"extensions": [
"streetsidesoftware.code-spell-checker",
"donjayamanne.githistory",
"ms-python.vscode-pylance",
"ms-python.debugpy",
"ms-python.python",
"mechatroner.rainbow-csv",
"charliermarsh.ruff",
"gruntfuggly.todo-tree",
"redhat.vscode-yaml",
"zhuangtongfa.material-theme",
"editorconfig.editorconfig"
]
}
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}