Python in Visual Studio Code
Learn about Visual Studio Code as a Python IDE (code completion, debugging, linting).
En bref
Ajouté le
18 mars 2026
Matière et domaine
coding · data-science-analytics
Niveaux scolaires
9e année (3e)–12e année (Terminale)
Type de page
Article
Introduction
Python Development in Visual Studio Code
- Core Requirements: Users must install a Python interpreter separately (e.g., from python.org) in addition to the Microsoft Python extension from the VS Code Marketplace.
- Environment Management:
- Supports virtual and conda environments.
- Use the
Python: Select Interpretercommand to choose or switch environments. - The selected environment powers IntelliSense, linting, debugging, and terminal execution.
- Key Features:
- IntelliSense: Provides auto-complete, method/variable suggestions, and documentation (trigger with
Ctrl+Space). - Linting: Supports multiple linters including Pylint, Flake8, mypy, and others.
- Debugging: Integrated debugger supports breakpoints, variable inspection, and multi-threaded/web/remote application debugging.
- Code Execution: Run files via the "Run Python File" button or execute selections/lines in the terminal using
Shift+Enter.
- IntelliSense: Provides auto-complete, method/variable suggestions, and documentation (trigger with
- Advanced Integrations:
- Jupyter: Install the Jupyter extension to support
.ipynbfiles, interactive cells, and remote Jupyter server connections. - GitHub Copilot: AI-powered code completion for faster development.
- WSL: Full support for Python development within Windows Subsystem for Linux.
- Testing: Built-in support for
unittestandpytestframeworks.
- Jupyter: Install the Jupyter extension to support
- Productivity Tools:
- Profiles: Use the "Python profile template" to quickly load curated extensions, settings, and code snippets.
- Smart Send: Automatically detects and executes the smallest runnable block of code when running selections.
Cette ressource
Boutiques d’applications
Avis de la communauté
Pas encore d’avis publiés. Soyez le premier à partager votre expérience.