Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ciamac-da/078e5e1fddbd9b963326e716898e287a to your computer and use it in GitHub Desktop.

Select an option

Save ciamac-da/078e5e1fddbd9b963326e716898e287a to your computer and use it in GitHub Desktop.
Install-or-update-vscode(Visual Studio Code)-on-debian
#installing vscode on Debian
You can install vscode using following commands:
1- Start by updating the packages index and installing the dependencies by typing:
sudo apt update
2- sudo apt install software-properties-common apt-transport-https curl
3- Import the Microsoft GPG key using the following curl command:
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
4- Add the Visual Studio Code repository to your system:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
5- Install the Visual Studio Code package with:
sudo apt update
sudo apt install code
#updating vscode on Debian
You can update vscode using following commands:
1- wget 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -O /tmp/code_latest_amd64.deb
2 - sudo dpkg -i /tmp/code_latest_amd64.deb
@HankB
Copy link

HankB commented Oct 15, 2025

Thanks for providing this. Unfortunately it no longer works with Apt 3 on Debian Trixie as is because add-apt-repository seems not to be part of Apt 3. I've done some searching and have not found how this is supposed to be done now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment