Step-by-step guide for Windows Users
Last updated
Was this helpful?
Last updated
Was this helpful?
Visual Studio Code (VS Code) is a lightweight but powerful code editor that’s perfect for Python development. Follow these steps to install and set up VS Code on your Windows computer.
Open your web browser and go to the official VS Code website: .
On the homepage, click the Download for Windows button. This will download the VS Code installer for Windows.
Once the installer is downloaded, locate it in your Downloads folder and double-click the file to launch the setup wizard.
When the installation window opens, read and accept the License Agreement, then click Next.
In the next window, you can choose the destination folder for the installation. You can keep the default location or choose a different one, then click Next.
You’ll now see several additional tasks you can select before installing:
Add “Open with Code” to the Windows Explorer context menu: Check this box. It allows you to open files or folders directly in VS Code from your file explorer.
Add to PATH: This option makes it easier to run VS Code from the command line. Make sure this box is checked.
Once you’ve selected the additional options, click Next and then Install.
The installer will now copy the necessary files to your system. This might take a few minutes.
After the installation is complete, click the Finish button. Make sure the option Launch Visual Studio Code is checked to open VS Code immediately after installation.
Once VS Code opens, you’ll want to install the Python extension, which adds all the features you need for Python development.
On the left side of the window, click the Extensions icon (or press Ctrl+Shift+X).
In the search bar at the top of the Extensions panel, type Python.
Select the extension titled Python (by Microsoft) and click the Install button.
Once installed, this extension provides features like syntax highlighting, code completion, and debugging for Python.
After installing the Python extension, VS Code will automatically detect the Python interpreter installed on your system.
To verify this, open the Command Palette by pressing Ctrl+Shift+P, then type Python: Select Interpreter
.
You should see a list of Python versions available on your system. Select the appropriate version (usually the latest version).
You’ve successfully installed Visual Studio Code and set it up for Python development! In the next section, we’ll cover writing and running your first Python program in VS Code.
Some content generated with AI