sudo snap install --classic code
code --version
sudo apt update
sudo apt install software-properties-common apt-transport-https wget -y
wget -q https:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code
code --version
1. Open Ubuntu Software Center:
Click the Show Applications button and open the Ubuntu Software Center app.
2. Find Visual Studio Code:
Click the Search button, and type vscode in the search bar. Click code on the list to open the app page.
3. Install vscode
Click the Install button and, when prompted, type in your administrator password to start the installation.
Click the Show Applications button and locate Visual Studio Code in the app list.
Depending on the installation method, use on of three ways to uninstall vscode:
sudo snap remove code
sudo apt remove code
If you installed vscode via the Ubuntu Software Center, follow the steps below uninstall the app:
a. Open the Ubuntu Software Center and click the Installed tab to see all installed apps.
b. Locate the code app on the list and click the Remove button.
c. When prompted, click Remove one more time to uninstall vscode from the system. Provide the admin password to confirm you want to uninstall the app.
The app has been successfully removed from your system.