Skip to content

Instantly share code, notes, and snippets.

@JuniYadi
Last active September 18, 2024 08:06
Show Gist options
  • Save JuniYadi/6e34176f3127396a9345f774d3e1ec20 to your computer and use it in GitHub Desktop.
Save JuniYadi/6e34176f3127396a9345f774d3e1ec20 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Install VSCode for Ubuntu or Debian"
echo "Ref: https://code.visualstudio.com/docs/setup/linux"
echo "code code/add-microsoft-repo boolean true" | sudo debconf-set-selections
sudo apt-get install wget gpg -y
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
rm -f packages.microsoft.gpg
sudo apt install apt-transport-https -y
sudo apt update
sudo apt install code -y
@JuniYadi
Copy link
Author

Install

curl -sL https://gist.githubusercontent.com/JuniYadi/6e34176f3127396a9345f774d3e1ec20/raw/ | bash

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