Summary: in this tutorial, you’ll learn how to use set up Visual Studio Code for Python.
Installing Visual Studio 2019. We download the installer first, then run it. The installer presents us. Visual Studio dev tools & services make app development easy for any platform & language. Try our Mac & Windows code editor, IDE, or Azure DevOps for free.
Visual Studio Code is a lightweight source code editor. The Visual Studio Code is often called VS Code.
The VS Code runs on your desktop. It’s available for Windows, macOS, and Linux.
VS Code comes with many features such as IntelliSense, code editing, and extensions that allow you to edit Python source code effectively. The best part is that the VS Code is open-source and free.
This tutorial teaches you how to set up Visual Studio Code for Python environment so that you can edit, run, and debug Python code.
Visual Studio And Python
Setting up Visual Studio Code
To setup the VS Code, you follows these steps:
First, navigate to the VS Code official website and download the VS code based on your platform (Windows, macOS, or Linux).
Second, launch the setup wizad and follow the steps.
Once the installation completes, you can launch the VS code application:
Install Python Extension
To make the VS Code works with Python, you need to install the Python extension from the Visual Studio Marketplace.
The following picture illustrates the steps:
Visual Studio Code And Python
- First, click the Extensions tab.
- Second, type the
python
keyword on the search input. - Third, click the
Python
extension. It’ll show detailed information on the right pane. - Finally, click the Install button to install the Python extension.
Visual Studio And Python
Now, you’re ready to develop the first program in Python.