How To Install VSCODE IDE On Windows | Visual Studio Code

Visual Studio Code or vscode is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity). In this post, I will explain step by step guide on how to install vscode ide on windows. We will install vscode and setup python environment to execute python programs.

Step by Step guide on how to install Visual Studio Code or vscode on Windows

Step 1 Download Visual Studio Code from official website

Link to download visual studio code: https://code.visualstudio.com/download

visual studio code download | ashutoshtripathi.com

Step 2 Once the download is complete, run the exe file to install Visual Studio Code. The setup wizard should have started. Click “Next”.

visual studio installation wizard

Step 3 in the next screen, change the installation path if required, else leave it and click next.

visual studio installation wizard

Step 4 Just click next

visual studio installation wizard

Step 5 Check all the boxes

It will make VS Code available in “open with” option. It will help you to open the vs code supported file just by right clicking on the file and selecting open with vscode. Also check the add to path check box so that vs code is added to path variable.

visual studio installation wizard

Step 6 Just click Install.

visual studio installation wizard

Step 7 Wait for the installation to finish.

visual studio installation wizard

Step 8 Click finish to complete the installation. as the Launch Visual Studio Code option is checked it will open the VS code screen.

visual studio installation wizard

Step 9 Once you click finish, you will see the below screen.

visual studio installation wizard

Alternatively, next time you can also open vs code using the start menu, and typing vscode in the search option as below.

Now the Visual Studio Code is installed. we will see one example on how to setup python and execute a python program. For this you need to install python if not already installed.

Please follow the step by step guide to install python on windows from this link:

How to Install Python on Windows [VSCODE IDE]

Alternatively you can also install python extension from vs code extension as below.

install python extension in visual studio code

Now just to check, if you search again the Python extension, it will say python already installed with a option to disable or uninstall it as below.

Python on visual studio code

Now click on file menu and select new file.It will create an empty file.

creating first python file in vscode
creating first python file in vscode

in the first line type print(“hello-world”) and do ctr+s . Then it will ask to save the file with a name. So rename it with firstProgram.py

creating first python file in vscode

Now you will see the line color is changed as per the python interpreter selected by default. However, if it is not taking by default then you can select the interpreter by pressing “ctrl shift p”

once you press “ctrl shift p” then you will see a pop up window will be visible at top there you type python interpreter and click on “Select Interpreter”.

vs code selecting python interpreter

Now you will see the available python interpreter in your system. Select the one you want to use.

vs code selecting python interpreter

Next from the menu select “Terminal” and click on New Terminal as below:

vscode how to open terminal

It will create a terminal at the bottom of the screen as below.

vs code terminal

Now to execute, type python filename.py to execute the program. And you will see the output in the terminal as below:

VScode how to run python code

So this is all about installing the Visual Studio Code on Windows and setup the python interpreter and finally execute the first hello-world program using visual studio IDE.

Please check out my articles on Machine Learning Tutorial.

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.