pr3-python-sose2026/.devcontainer/devcontainer.json

27 lines
1.1 KiB
JSON

{
"name": "HS Mannheim PR3 - Python 3",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
// Python 3 als Standard im Container
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.terminal.activateEnvInSelectedTerminal": true,
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-python.python", // Python Sprachunterstützung
"ms-python.vscode-pylance", // IntelliSense (Auto-Complete)
"ms-python.debugpy", // Debugger für PR3 Übungen
"njpwerner.autodocstring", // Hilft bei Docstrings (gut für Abgaben)
"eamodio.gitlens" // Git-Verlauf direkt im Code
]
}
},
// Installiert automatisch Abhängigkeiten
"postCreateCommand": "if [ -f requirements.txt ]; then pip install -r requirements.txt; fi",
"remoteUser": "vscode"
}