How to Install Visual Studio Code on EndeavourOS Linux

Visual Studio Code (VS Code) is a powerful, lightweight code editor developed by Microsoft, widely used by developers for various programming tasks. If you are using EndeavourOS, an Arch-based Linux distribution, you can install VS Code effortlessly using the Arch User Repository (AUR) or directly from Microsoft’s repository. In this guide, we will show you step-by-step how to install VS Code on EndeavourOS.
Prerequisites
Before installing VS Code, ensure that:
- You have EndeavourOS installed and running.
- Your system is updated.
- You have an active internet connection.
- You have a sudo-enabled user account.
Method 1: Installing VS Code via the Arch User Repository (AUR)
EndeavourOS provides yay, an AUR helper, by default. You can use it to install VS Code easily.
Step 1: Update Your System
sudo pacman -Syu
This ensures that all packages are up to date.
Step 2: Install VS Code from AUR
Run the following command:
yay -S visual-studio-code-bin
This will download and install the binary version of VS Code from AUR, which is officially provided by Microsoft.
Step 3: Verify Installation
Once the installation is complete, check if VS Code is installed by running:
code --version
If you see the version number, VS Code is successfully installed.
Method 2: Installing VS Code via Microsoft Repository
Alternatively, you can install VS Code directly from Microsoft’s official repository.
Step 1: Enable the Microsoft Repository
First, import the Microsoft GPG key and add the repository:
sudo pacman-key --recv-keys EB3E94ADBE1229CF
sudo pacman-key --lsign-key EB3E94ADBE1229CF
Then, create a new repo file:
echo "[code]
Server = https://packages.microsoft.com/repos/code
enabled = 1
SigLevel = Optional TrustAll" | sudo tee /etc/pacman.d/microsoft-code.repo
Step 2: Install VS Code
Now, update the package list and install VS Code:
sudo pacman -Sy code
Step 3: Launch VS Code
Once installed, launch VS Code by running:
code
Alternatively, you can open it from the applications menu.
Conclusion
You have successfully installed Visual Studio Code on EndeavourOS Linux. Whether you choose the AUR method or the Microsoft repository, both are reliable ways to install VS Code. Now, you can start coding with one of the best code editors available!
Additional Tips:
- Install useful extensions for Python, JavaScript, and other languages via the Extensions Marketplace.
- Enable auto-updates by keeping your system up to date using
yay -Syu
. - Customize VS Code with themes, icons, and keybindings for a better experience.
Enjoy coding on EndeavourOS with Visual Studio Code!
Keywords for SEO: install vscode on EndeavourOS, EndeavourOS vscode installation, how to install Visual Studio Code on EndeavourOS, vscode Arch Linux, install vscode using yay, best code editor for EndeavourOS.