Python has become one of the most popular programming languages today, and with good reason. It’s relatively easy to learn compared to other languages. If you’re interested in Python programming, you’ve probably heard of Visual Studio Code (VSCode), a fantastic cross-platform text editor with excellent Python support.
Table of Contents
Python has become one of the most popular programming languages today, and with good reason. It’s relatively easy to learn compared to other languages. If you’re interested in Python programming, you’ve probably heard of Visual Studio Code (VSCode), a fantastic cross-platform text editor with excellent Python support.
Why you Must Use Visual Studio Code for Python programming
VSCode is an open-source editor for several programming languages, including python. It was created by Microsoft but has since been turned over to open source contributors. The features of VSCode include an integrated terminal window, syntax highlighting for many popular languages (including python), git integration, debugging capabilities, color customization, and much more.
In this blog, I’ll show you how to install VSCode for Windows 10 and set it up with Python. Let’s get started!
Setup Latest Version of Python in Windows
The first thing you’ll need to do is install python on your computer so that you can get started coding right away!
Step 1: Download Latest Version of Python
- Search “download python” on Google or visit this website https://www.python.org/downloads/
- Download the latest version of python for your operating system
- Double click on the downloaded file as in my case it was “python-3.10.2-amd64”
Step 2: Installation of Python Executable File
- A window will appear, must check out both options in bottom
- Install launcher for all users (recommended)
- Add Python 3.10 to PATH
- Click on Install Now, it will take a few minutes for python installation
- Now, the python setup completion interface will appear.
Step 3: Confirm Python Installation on Windows
- For confirmation, you can open “Command Prompt” from the search bar
- Now type “python – version” and click enter, It will show the exact python version
Part 2: Installation of Visual Studio Code in Windows
Step 1: Download Latest Version of Visual Studio code
- First, download the software by searching “Visual Studio Code ” on Google or open this website https://code.visualstudio.com/download
- Click on their respective operating system, it will start downloading the VSCode file
- In my case, “VSCodeUserSetup-x64-1.63.2” file is downloaded
Step 2: Installation of Visual Studio Code in Windows
- Open the executable file of VSCode, and it will show the “License Agreement”
- Click on the radio button “I accept the agreement” and then on the “Next” button
- Select your destination location and click “Next”
- Choose start menu folder or leave it as by default selection and click “Next”
- Must select all the four checkboxes mentioned in the below picture and click “Next”
- Now your Microsoft Visual Code is ready to install, just click on the “Install” button
- After several minutes of installation, click on the “Finish” button and launch the setup
- Now you have Python and Visual Studio Code in your system.
Step 3: Python Extension for Visual Studio Code
In the final step, click on the “Extension” button in VSCode and search “Python”
- You will see that “Python” is already installed in VSCode. If it shows the “Install” button instead of the “Uninstall” button then click on it.
- Now, create a new file with the name “addition.py”
- A small window may appear at the bottom which will show “Select Python Interpreter”
- Click on the button and select “Python 3.10.2 64-bit” or Recommended option
Congratulations, Now you can enjoy your python code in Microsoft Visual Studio Code.