To write and code any programming language, we need a very good text editor or IDE. IDE stands for Integrated Development Environment. It helps us to write and run the code. When it comes to Python, we need an advanced IDE to write and run the Python code. In this article, you will learn how to set up the Visual Studio Code for Python on Windows 10.
Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux, and macOS. It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring.
How to Install Python on Windows 10
Python is a popular high-level and general-purpose programming language. It is used to create desktop GUIs, Web-based applications, websites, and many more. In addition, it is widely used in scientific computing, data analysis, and deep learning applications.
Here we are going to learn how we can download and install python on windows 10.
Step 1: Visit python.org and click on “Downloads“. This will open the download page for windows.
Step 2: Click on “Download Python 3.8.2” and it will start to download.
Also Read: Top 5 Online Courses for Python Programming
Step 3: After the download has been completed open the .exe file to install Python 3.8.2
Step 4: It will open the “Set-up Window” there you will find two installation options “Install Now” and “Customize Installation“.
Note:– If you want to change your installation location and you want to only install some of the specific features then click on “Customize Installation“.
Step 5: Now if you don’t want a customize installation then select “Install Now“. But before selecting Install Now, you have to check the box called “Add Python 3.8.2 to PATH“. Then wait a few times for the installation process to complete.
Step 6: After the setup has been completed just click on the Close button.
Also Read: 10 Best Python Frameworks You Should Know
How to Install Visual Studio Code on Windows 10
Now let us discuss how we can download and install Visual Studio Code on Windows 10.
Step 1: First of all, we need to download the installer file for Windows operating system. For that visit code.visualstudio.com and download the Windows version of Visual Studio Code.
Step 2: After you have downloaded the installer file open it and accept the license agreement then click on “Next“.
Step 3: Now select your installation location, where you want to install the Visual Studio Code. If you don’t have any good reason to change the installation location then keep it to default.
Step 4: After that select Start Menu Folder and add some additional tasks, “create a desktop icon” and “Add to Path“.
Note:– It is very important to add Visual Studio Code to PATH.
Step 5: Finally you are ready to install the VS Code on Windows 10. Just review all your selections then click on “Install”.
It will take some time to install so wait until the installation is completed. After that, you’re ready to use Visual Studio Code.
Also Read: Top 10 Python Web Frameworks to Learn
How To Setup Visual Studio Code For Python
Now let us discuss how we can install and set up visual studio code for python on windows 10. After installing the required software follow these simple steps to set up Python on Visual Studio Code.
Here’s a video on How to Set Up Visual Studio Code for Python on Windows 10:
Step 1: Open Visual Studio Code and click on Extension from the left-hand-side menu.
Step 2: To set up Python, we have to install Python extension on Visual Studio Code. For that, search for Python and install the Python extension.
Step 3: After installing the Python extension, we have to reload the software to activate the extension. Now you are ready to use Visual Studio Code for Python programming.
Follow these simple steps or you can follow the video tutorial mentioned above. Hope we helped you.