Installing VS Code on Linux: When Coding Becomes as Easy as Making Coffee
So, you’ve decided to become a true Linux ninja and chosen VS Code as your trusty code editor? Great choice! Let’s get you set up with VS Code on Ubuntu, Fedora, and Arch Linux. Don’t worry—no need for wizardry here, just your terminal and a little patience. Ready? Let’s dive in!
1. Installing VS Code on Ubuntu: The Path to Programmer’s Zen
For Ubuntu fans, there’s a simple way to get set up—so easy you could do it before your morning coffee.
-
Add the Microsoft GPG Key and Repository:
Run this little magic in your terminal:
sudo apt update sudo apt install wget gpg 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 /usr/share/keyrings/
GPG keys, repositories… congratulations, Microsoft now knows you’re serious about code.
-
Add the VS Code Repository:
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
-
Install VS Code:
sudo apt update sudo apt install code
-
Launch It! Fire up VS Code by typing
code
in the terminal, or find it in your applications menu like a true coding wizard.
2. Installing VS Code on Fedora: For the Tech Gourmet
Fedora users, get ready for some yum magic. No dancing around—just a few commands and a sprinkle of RPM.
-
Add the Repository:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
-
Install VS Code:
sudo dnf check-update sudo dnf install code
-
Launch It! Run
code
in the terminal, or click the icon. Fedora’s got you covered.
3. Installing VS Code on Arch Linux: For the Truly Brave
Arch Linux—the choice of the fearless. Installing here is like the final boss battle in a game, but fear not, we have a secret weapon: AUR. If you don’t already have yay
installed, check out our post on installing yay for a quick setup.
-
Install VS Code using yay (if you’ve got it):
yay -S visual-studio-code-bin
-
Alternative Way:
If you’d prefer the official (OSS) version, grab it from the Arch repositories with:
sudo pacman -S code
-
Launch It! Type
code
to enter the wonderful world of Arch and VS Code.
Wrapping Up
That’s it—you’re officially ready to take on the coding world from Linux, whether it’s Ubuntu, Fedora, or Arch. With VS Code as your ally, coding just got a whole lot easier and way more fun. Ready to dive into code? Let the magic begin!
See also
- Installing `yay` on Arch Linux
- How to Set Up the Caddy Web Server to Do All the Work for You (Well, Almost)
- Arch Linux vs. Ubuntu vs. Fedora: The Linux Family Reunion
- Fedora Linux: The Rebel With a Cause (But Mostly Updates)
- Lesson 1: HTML Basics – Your First Step Toward Internet Domination (Now with a Side of Caddy Server!)