Ubuntu – How to install Visual Studio Code in Ubuntu?

snapsoftware installationvisual-studio-code

I am using Ubuntu 18.04, and I need to install Visual Studio Code in my machine i tried:

sudo snap install --classic vscode

but it didn't work.

Best Answer

To install Visual Studio Code Ubuntu 18.04, ust press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt update
sudo apt install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt install code


Related Question