PDF download Download Article PDF download Download Article

Visual Studio Code, commonly called VS Code, [1] is a user-friendly source code editor developed by Microsoft for various platforms, including Windows , Linux , macOS [2] and even your web browser . [3] It allows you to write and edit code in a variety of languages, including HTML [4] , JavaScript , [5] Python and many more. Read on for instructions to install this highly popular IDE! [6]

Method 1
Method 1 of 2:

Installing on Windows

PDF download Download Article
  1. Choose your favourite internet browser and open it. Popular browsers include Google Chrome , Mozilla Firefox , Opera and others. [7]
    • Microsoft Edge is the default browser for Windows, [8] though it can also be installed by following the instructions here .
  2. 2
    Open Visual Studio Code's download page. It is located at https://code.visualstudio.com/Download . You can either click on it from here or copy and paste it into your browser's URL tab, then press Enter .
    • Alternatively, use your browser to search for vs code and find the page from the search results.
    Advertisement
  3. 3
    Download the installer. Look for the Windowscolumn on the left, and click on the big blue button.
    • If you have special/separate preferences, you can also choose to download a different type of installer, such as .zip , CLI etc.
  4. 4
    Open the installer file. Open and use the File Explorer to find where the download is saved , then open the file . Otherwise, you can simply navigate to your browser's download history (usually by using a keyboard shortcut like Ctrl + J ) and run the installer file from there.
  5. 5
    Read and agree to the license agreement. Once the setup window opens, you'll be presented with the license agreement. Read it carefully, and click the radio checkbox beside "I accept the agreement" below the section if you agree. Then, click on the Next button in the bottom-right corner to proceed further.
    • You can't proceed with the installation if you do not agree to the terms.
  6. 6
    Choose where you want VS Code to be installed. In other words, select the installation location. In the bottom-left area, you'll be shown the amount of storage space required for the installation. Check if your system has the necessary space. If not, consider cleaning up unnecessary files to free up disk space . Then, click on the Browse... button to choose a location, otherwise, a default one will be automatically selected for you. Finally, click the Next button in the bottom-right corner to proceed.
    • VS Code is installed under C:\Users\{Username}\AppData\Local\Programs\Microsoft VS Code by default. [9]
    • Unless you have various drives, leaving the installation location as default should be fine in most cases.
  7. 7
    Configure the Start Menu folder. If you like to use the Start Menu , you can add a folder to it for the program's shortcuts. Check/uncheck the checkbox next to "Don't create a Start Menu folder", use the Browse... button to optionally select another location and click on Next in the bottom-right corner to proceed.
  8. 8
    Select any additional tasks. These include options like creating a desktop icon , adding "Open with Code" action to different places etc. Check/uncheck the boxes next to the relevant setting as per your preference. Afterwards, click the Next button in the bottom-left corner.
  9. 9
    Review the installation parameters. You'll be presented with a screen containing a variety of details, including the location and settings. Ensure everything is to your preference; if not, then click the Back button to make changes, and navigate back to this screen when you're done. Click the Install button to start the process.
    • Both of the Back and Install buttons are present in the bottom-right corner of the setup window.
  10. 10
    Complete the installation. Once you click the Install button, wait for the processes to complete. Once everything is successful, you'll see the completion screen. Here, you may choose to open the IDE by ensuring that the checkbox beside "Launch Visual Studio Code" is checked. Finally, click Finish . You may start your coding journey !
  11. Advertisement
Method 2
Method 2 of 2:

Installing on Debian Linux

PDF download Download Article
  1. 1
    Open a web browser. Choose your favourite internet browser and open it. Popular browsers include Google Chrome , Mozilla Firefox , Opera and others. [10]
  2. 2
    Open Visual Studio Code's download page. It is located at https://code.visualstudio.com/Download . You can either click on it from here or copy and paste it into your browser's URL tab, then press Enter .
    • Alternatively, use your browser to search for vs code and find the page from the search results.
  3. 3
    Download the installer. Look for the Linux column in the center, and click on the big blue button on the left, where it says ".deb".
    • If you have special/separate preferences, you can also choose to download a different type of installer, such as .tar.gz , CLI etc.
  4. 4
    Locate the installer file. If you'd like, you could also copy or move the file to a more convenient location. Remember the file location because you shall need it later!
  5. An easy way to do so on many popular distributions, like Ubuntu [12] and others is to use the keyboard and press Ctrl + Alt + T . [13] [14] Specific instructions for Ubuntu can be found here and direction for opening a root one for Kali Linux can be found here .
  6. 6
    Navigate to the directory which contains the installer file. Recall the location of the file from the previous step and navigate to it by using the cd command. [15] [16] Type cd <path of the directory> [17] and press Enter to execute the command.
  7. 7
    Install the .deb file. [18] You can use the dpkg command to do so. [19] Ensuring you're in the correct directory (which has the installer file in it), run sudo dpkg -i <name of installer file with extension> .

    Note:As when installing anything from the internet, it's a good idea to research what each of the parameters mean.

  8. 8
    Enter the superuser account password. sudo allows you to run commands that require elevated privileges; [20] you should ensure you have the permission necessary and the password for the superuser account, as it is required for performing the action. Enter the password and press Enter to continue.
  9. 9
    Decide whether you'd like to add the Microsoft apt repository for Visual Studio Code. Partway through the procedure, you will be prompted if you would like to allow the installer to add the Microsoft repository and signing key to update VS Code through apt. You can use the keyboard to indicate your preference.
    • This will add VS Code to your package manager, so it is automatically updated when you update your system.
  10. 10
    Exit the terminal. Once installation is complete, close the terminal. You can use the exit command [21] or simply click the "X" button on the top-right (on Kali Linux).
  11. 11
    Open Visual Studio Code (optional). On Kali Linux, open the Menu bar, search for code and click on "Visual Studio Code" to open the IDE. You may practice programming now!
  12. Advertisement

Expert Q&A

Ask a Question
      Advertisement

      Video

      Tips

      • If the dpkg command throws an error about dependencies, run sudo apt-get install -f to resolve them. [22] [23]
      • You can cancel the VS Code Windows installation by clicking the Cancel button in the bottom-right corner of the window.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • If you try to open the VS Code Windows installer while already running an instance of the IDE, you will be warned as shown below. In such a case, close all instances beforehand if you want the setup to continue.
      • Be extremely careful while using the Linux terminal. If not used properly, it could cause harm to your system. Ensure you review and properly understand each command before executing it.
      • By downloading and using VS Code, you agree to the relevant license terms and the relevant privacy statement . [24]
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 11 times.

      Is this article up to date?

      Advertisement