This cookiecutter template generates code for a basic Python project in a Visual Studio Code Dev Container (devcontainer) environment.
cookiecutter https://github.com/ilyasotkov/python-vscode-devcontainer-bootstrap
Open the generated folder in VS Code, and you'll be prompted to re-open in Dev Container.
Or, after running "Remote-Containers: Install devcontainer CLI" from VS Code Command Palette, run
devcontainer open <PROJECT_NAME>
Read more about the devcontainer CLI
- Docker Desktop
- Visual Studio Code with Remote - Containers extension installed
- cookiecutter (can use through Docker as well)
- Go to definition, auto-complete
- Refactoring
- Code formatting on file save
- Import sorting on file save
- Debugger with ability to hit breakpoints and discover variables
- pytest integration for unit tests (run / debug / visualize test runs)
- If IntelliSense features don't work after opening your dev container, run "Developer: Reload Window" from VS Code Command Palette. See microsoft/vscode#149309