Install and Uninstall VS Code Using APT on Ubuntu

August 9, 2024 / General Discussion

This guide illustrates how to install and uninstall VS code using APT on Ubuntu. Visual Studio Code is a free and open-source code editor, usually known as VS Code. It offers features intended to improve productivity and make the coding experience worth it.

Follow the guide:

  1. Installing VS Code Using APT on Ubuntu
    If you wish to use APT for package management, you can install VS Code with these steps:

    1. Open the terminal on your Ubuntu system.
    2. Run the subsequent command to add the Microsoft repository:
      sudo add-apt-repository “deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main”
    3. Update your package list once again using the following command:
      sudo apt update
    4. To install Visual Studio Code:
      sudo apt install code
    5. To open Visual Studio Code, type:
      code
  2. Uninstalling Visual Studio Code on Ubuntu
    If you ever want to take Visual Studio Code out of your Ubuntu system, it is really simple to do so:

    1. Launch the terminal once again.
    2. Add the following command to uninstall VS Code:
      sudo apt remove --purge code
    3. To eliminate any residual configuration files, use:
      sudo apt autoremove

In this manner, you can use APT on Ubuntu to install and uninstall Visual Studio Code. Please do not hesitate to contact our support staff as soon as possible if you run into any problems.

How to Install Python 3 on Ubuntu 20.04 or 22.04: Learn step-by-step instructions to install Python 3 on your Ubuntu system.

Leave a Reply

Your email address will not be published. Required fields are marked *