Last active
April 6, 2024 13:03
-
-
Save elkuno213/34af2f3b5dd3be40fce897cd3c4a2a65 to your computer and use it in GitHub Desktop.
Install VSCode on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Update and install prerequisites | |
sudo apt update | |
sudo apt -y install curl gpg | |
# Add ppa key | |
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' | |
# Install vscode | |
sudo apt -y install apt-transport-https | |
sudo apt update | |
sudo apt -y install code # ou code-insiders | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment