Skip to content

Instantly share code, notes, and snippets.

@det-peralta
Last active February 18, 2020 16:46
Show Gist options
  • Select an option

  • Save det-peralta/09572df575f28d8f289759b8ffd9b987 to your computer and use it in GitHub Desktop.

Select an option

Save det-peralta/09572df575f28d8f289759b8ffd9b987 to your computer and use it in GitHub Desktop.
Instal Visual Studio Code on Ubuntu
#!/usr/bin/env bash
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/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 -y upgrade
sudo apt-get install code # or code-insiders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment