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

Answers


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

[1]: download the latest vscode (.deb) package to your computer on this link :

https://go.microsoft.com/fwlink/?LinkID=760868

, or this there : https://code.visualstudio.com/docs/

[2]: then open a terminal in the folder where you downloaded the .deb file and write:

sudo dpkg -i <the downloaded file>.deb

[3]: 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:

code --version

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.


Need Your Help

Big number in C++

c++ biginteger

I am trying to place a big number in a C++ variable. The number is 600851475143

Is there a way to install jar local gradle repository, as it in mave (maven install:install-file

java maven jar gradle

I used to work only with maven, and when project requires some jar which is not available in any repository, I was able to install it with