How do I install Visual Studio Code?
Update
VSCode is now available as DEB file. You can download it and then run:
sudo dpkg -i ~/path/to/code_1.XXX.deb
In case dpkg
complains about missing dependencies, run:
sudo apt -f install
afterwards to fix the problem.
Old answer
- Download Visual Studio Code for Linux
- Extract it:
unzip VSCode-linux-x64.zip -d ~/path/to/VSCode
- Run the
code
executable to open Visual Studio Code - (Optional) Create a symbolic link to conveniently run
code
from the terminal:
sudo ln -s /path/to/VSCode/code /usr/local/bin/code
Source (install instructions): https://code.visualstudio.com/docs/setup/linux
You can use Ubuntu Make to download and install Visual Studio Code:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
Then install Visual Studio Code:
umake ide visual-studio-code
Then click on the Visual studio icon that it automatically places on your launcher.
To remove it, delete the installation folder and right click on the launcher to unpin the icon. The installation folder defaults to ~/tools/web/visual-studio-code
References
- http://blog.didrocks.fr/post/Ubuntu-Make-0.7-released-with-Visual-Studio-Code-support
- https://wiki.ubuntu.com/ubuntu-make
Visual Studio Code enabled official Linux repositories on February 2017 (v1.10)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF
sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt -y install code
You can upgrade / dist-upgrade as usual
sudo apt -y upgrade
sudo apt -y dist-upgrade