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/python
3+ {
4+ "name" : " Python 3" ,
5+ // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+ "image" : " mcr.microsoft.com/devcontainers/python:1-3.10-bullseye" ,
7+ // Features to add to the dev container. More info: https://containers.dev/features.
8+ // "features": {},
9+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
10+ "forwardPorts" : [
11+ 8080
12+ ],
13+ // Use 'postCreateCommand' to run commands after the container is created.
14+ "postCreateCommand" : " pip3 install --user -r requirements.txt" ,
15+ // Configure tool-specific properties.
16+ "customizations" : {
17+ // Configure properties specific to VS Code.
18+ "vscode" : {
19+ // Set *default* container specific settings.json values on container create.
20+ "settings" : {
21+ "editor.formatOnSave" : true ,
22+ "files.autoSave" : " afterDelay" ,
23+ "editor.formatOnPaste" : true ,
24+ "editor.fontSize" : 15 ,
25+ "workbench.iconTheme" : " material-icon-theme" ,
26+ // to do tree settings
27+ "todo-tree.highlights.defaultHighlight" : {
28+ "icon" : " alert" ,
29+ "type" : " text-and-comment" ,
30+ "foreground" : " #ffffff" ,
31+ // "background": "#808080",
32+ "opacity" : 70 ,
33+ "iconColour" : " #0000FF" ,
34+ "gutterIcon" : true
35+ },
36+ "todo-tree.highlights.customHighlight" : {
37+ "TODO" : {
38+ "icon" : " tools" ,
39+ // "foreground": "#000000",
40+ // "background": "#FFFFFF",
41+ "iconColour" : " #FFFFFF"
42+ },
43+ "NOTE" : {
44+ "icon" : " note" ,
45+ "foreground" : " #e404f8" ,
46+ // "background": "#808080",
47+ "iconColour" : " #e404f8"
48+ },
49+ "QUESTION" : {
50+ "icon" : " question" ,
51+ "foreground" : " #FFFF00" ,
52+ // "background": "#FFFF00",
53+ "iconColour" : " #FFFF00"
54+ },
55+ "FIXME" : {
56+ "foreground" : " #000000" ,
57+ "background" : " #FFFF00" ,
58+ "iconColour" : " #FFFF00"
59+ },
60+ "BUG" : {
61+ "foreground" : " #000000" ,
62+ "background" : " #FF0000" ,
63+ "iconColour" : " #FF0000"
64+ },
65+ "DEBUG" : {
66+ "foreground" : " #FFFF00" ,
67+ // "background": "#FF0000",
68+ "iconColour" : " #FFFF00"
69+ },
70+ "SOLVED" : {
71+ "icon" : " check" ,
72+ "foreground" : " #FFFFFF" ,
73+ "background" : " #00FF00" ,
74+ "iconColour" : " #00FF00"
75+ }
76+ },
77+ "todo-tree.general.tags" : [
78+ " TODO" ,
79+ " NOTE" ,
80+ " QUESTION" ,
81+ " FIXME" ,
82+ " BUG" ,
83+ " DEBUG" ,
84+ " SOLVED"
85+ ],
86+ "todo-tree.regex.regex" : " (//|#|<!--|;|/\\ *|^|^\\ s*(-|\\ d+.))\\ s*($TAGS).*(\\ n\\ s*//\\ s{2,}.*)*" ,
87+ "todo-tree.tree.autoRefresh" : true ,
88+ "window.restoreWindows" : " none" ,
89+ "indentRainbow.ignoreErrorLanguages" : [
90+ " markdown" ,
91+ " python" ,
92+ " cpp"
93+ ]
94+ },
95+ // Add the IDs of extensions you want installed when the container is created.
96+ "extensions" : [
97+ " ms-python.python" ,
98+ " ms-python.debugpy" ,
99+ " ms-python.autopep8" ,
100+ " ms-python.flake8" ,
101+ " oderwat.indent-rainbow" ,
102+ " gruntfuggly.todo-tree" ,
103+ " pkief.material-icon-theme"
104+ ]
105+ }
106+
107+ }
108+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
109+ // "remoteUser": "root"
110+ }
0 commit comments