

On Windows, running the installer and following the setup instructions will complete the installation. To install the program on your operating system, visit the official website and find the stable version of the tool by hovering your mouse over the arrow on the download button. VS Code is available on Windows, Mac, and Linux, and the IDE is updated monthly. You can write programs in multiple languages in VS Code thanks to its built-in support for extensions. You may have heard of the Microsoft Visual Studio, but VS Code shares nothing with that tool other than the name. Installing and Configuring Visual Studio Code for Python

We also outline how to enter code, save files, and run programs. In this guide, we will walk you through installing Visual Studio Code and the required extension for Python development. The process is quite simple and doesn’t take much time to complete. Remote Development extension also installs Remote – Containers, Remote – SSH, Remote – SSH: Editing Configuration Files, and Remote – WSL.Beginning your Python journey can be very exciting, especially if you’ve never installed an IDE before. On the search bar, type Remote Development and install it.On the search bar, type Python and install it.Click the extension icon or type Ctrl+Shift+X to open the extension windows.Pylance is optional but highly recommended, which provides fast and feature-rich language support for Python. VS Code has thousands of thousand extensions the Python and Remote Development extensions are the minima for Python development on Windows and remote platforms. Double click the downloaded binary, VSCodeUserSetup-圆4-1.52.1.exe, to install.When the tutorial is written, the latest version is 1.52. Since Windows 10 is the host VS Code runs in this tutorial, we need to install VS Code on the Windows host. The Python extension supports all of the linters above. venv for creating a virtual environment.Ubuntu 20.04 (for WSL and remote Linux)Ī typical Python development includes the virtual environment, linting, test, and debug.Visual Studio Code 1.52 with extensions.

The Python project has the following layout: This tutorial uses a simple Python project to demonstrates the VS Code setup for Python development on Windows 10, Windows Subsystem for Linux, remote Linux, and Raspbian on Raspberry Pi.
