Installing Visual Studio Code on Ubuntu 20.04 (automatic update support)

Installing Visual Studio Code on Ubuntu 20.04 (automatic update support)

The following is a shell script of the procedure of https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions. This will install Visual studio code. (Verified) If there is an update in Visual studio code, you can (should) update it with apt update & apt upgrade. (unconfirmed)

#!/bin/sh

# https://code.visualstudio.com/docs/setup/linux
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code # or code-insiders

https://gist.github.com/m-tmatma/e74b854d62512e8744f7b14ae907b127

reference https://code.visualstudio.com/docs/setup/linux#_debian-and-ubuntu-based-distributions

Recommended Posts

Installing Visual Studio Code on Ubuntu 20.04 (automatic update support)
Fastest installation of Visual Studio Code on Ubuntu
I couldn't type Japanese in Ubuntu20.04 + Visual Studio Code
Update gitlab-runner with Ubuntu automatic update
Installing OpenMX on Ubuntu 18.04.5 LTS
Java in Visual Studio Code
Stop automatic update of Ubuntu
Use PlantUML with Visual Studio Code
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
Installing and using Ansible on Ubuntu 16.04
[For beginners] Introducing the procedure to Hello, World in C/C ++ language using Visual Studio Code on Ubuntu
Ruby on Rails in Visual Studio Codespaces
[Mac] Install Java in Visual Studio Code
Experience .NET 5 with Docker and Visual Studio Code
Add --enable-preview option in Java in Visual Studio Code
Java.home cannot be set in visual studio code.
Automatic DDNS update on CentOS8 (for MyDNS.JP only)
[Mac] Install Java in Visual Studio Code (VS Code)