codingstreets
Search
Close this search box.

Install Visual Studio Code & Setup Environment Variables

install-visual-studio-code-setup-environment-variables
Photo by fauxels on Pexels.com

In this article, we will guide you through the process of installing Visual Studio Code and setting up your development environment. Visual Studio Code is a popular code editor that is easy to use and supports multiple programming languages. Whether you are a beginner or an experienced developer, this article will provide step-by-step instructions to get you up and running with Visual Studio Code. By the end of this article, you will have a fully functional development environment that will help you be more productive and efficient in your coding projects.

Also, take a look at Python Tutorial

Table of Contents

Introduction

Python is a high-level, interpreted programming language that has gained immense popularity over the years. Developed in the late 1980s, Python is designed to be easy to read, write, and understand. It is open-source and has a vast community of developers who continue to contribute to its development and enhancement. Python is used in a variety of applications, from web development, scientific computing, data analysis, artificial intelligence, machine learning, and many more. Its concise syntax makes it a favorite among beginners and experts alike. In this day and age, Python has become one of the most popular programming languages and is considered a must-learn for anyone interested in software development.

Steps to install the Visual Studio Code

To install Visual Studio Code, please follow the below steps:

  1. Go to the official website of Visual Studio Code
  2. Click on the “Download for Windows” button if you are using a Windows machine, or click on the “Download for Mac” button if you are using a Mac.
  3. Once the download is complete, open the downloaded file.
  4. Follow the on-screen instructions to complete the installation process.
  5. Once the installation is complete, open Visual Studio Code.
  6. You can now use Visual Studio Code for your development projects.

Note: The steps may vary slightly depending on the operating system and version of Visual Studio Code you are using.

Steps to install Python Language

Here are the steps to install Python on your machine:

  1. Go to the official website of Python.
  2. Click on the “Download Python” button that corresponds to your operating system. Choose the latest stable release for your system.
  3. Once the download is complete, open the downloaded file.
  4. Follow the on-screen instructions to complete the installation process.
  5. In the installation wizard, make sure to check the option “Add Python to PATH”. This ensures that you can access Python from any directory in the command line.
  6. Once the installation is complete, open the command prompt or terminal and type “python –version” to check if Python is installed correctly. You should see the version number of Python that you installed.
  7. Optionally, you can also install a code editor such as Visual Studio Code or PyCharm to write your Python code.

Congratulations! You have successfully installed Python on your machine. Now you can start coding in Python and explore its wide range of applications.

Note: If you forgot to follow step 5, then proceed to the below steps to set the Python Path Environment Variables, else you’re all set to work on Python!

How to do “Environment Setup” on PC?

Environment setup is an important step in software development, as it ensures that your machine has all the necessary tools and dependencies to run and develop applications. Here are the general steps to set up your environment on a PC:

1. Open “Environment Variables” by searching in the search section of Windows.

environment-variables-codingstreets

2. Make sure you’re in the “Advance” option Now, click on the option “Environment Variables” down below.

environment-variables-1- codingstreets

3. In the “System variables” find the option “Path” and click on the “Edit” option.

environment-variables-2-codingstreets

4. Click on the option “New”.

environment-variables-3-codingstreets

5. Paste the location of the Python installation. E.g., C:\Users\deepa\AppData\Local\Programs\Python\Python310 add a forward slash ( \ ) at the end. 

Note: In the above address user name i.e., deepa, and the Python version’s folder i.e., Python310 might be different depending on your computer.

6. Again click on the option “New”.

7. Paste the same direction from step 5 including forward slash and add Scripts\

8. Click on “OK”

9. Test your environment by opening CMD and writing the python – -version to see the currently installed version of Python language.

command-prompt-codingstreets

Once your environment is set up, you can start developing your applications with ease and confidence, knowing that you have all the necessary tools and dependencies in place.

Install Necessary Extensions 

  1. Open Visual Studio Code
  2. On the left side, click on the Extension option.
  3. Search the following extensions one by one and install

Following extensions are to be installed:

  1. Python
  2. Pylance
  3. IntelliCode

Congratulations!! Now we’re ready to run our very first program “Hello World” in Python.

Conclusion

In conclusion, setting up your development environment is crucial to ensure that your machine has all the necessary tools and dependencies to run and develop applications. Visual Studio Code is a popular code editor that supports multiple programming languages, making it a great choice for developers. In this article, we have provided step-by-step instructions to install Visual Studio Code and set up your environment on a PC, including installing programming language i.e., Python, and configuring environment variables. By following these instructions, you can set up your development environment and start coding your applications with ease and confidence.

Recent Articles