How to upgrade Visual Studio Code editor?
What's the best way to upgrade Visual Studio Code on Linux Ubuntu?
For the time being I was periodically getting the newest version (.deb) from their official site: https://code.visualstudio.com/
sudo dpkg -i code_*.deb
Visual Studio Code enabled official Linux repositories on February 2017 (v1.10)
sudo add-apt-repository -y "deb https://packages.microsoft.com/repos/vscode stable main " sudo apt update sudo apt -y install code
You can upgrade / dist-upgrade as usual
sudo apt -y upgrade sudo apt -y dist-upgrade
: download the latest vscode (.deb) package to your computer on this link :
, or this there : https://code.visualstudio.com/docs/
: then open a terminal in the folder where you downloaded the .deb file and write:
sudo dpkg -i <the downloaded file>.deb
: finally if you have apt-get do (if not install apt-get first):
sudo apt-get install -f
If you have installed it via the repository, exit VS Code then just do:
sudo apt-get install code
This is the same command to install or upgrade to the latest version. You can see the version with:
Now the easiest way is to use snap:
sudo snap install --classic code
And according to the Microsoft site, updates happen automatically in the background.