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