Installing VS Code on Arch Linux Takes Some Thinking

New Arch users may find it a bit confusing when it comes to installing popular VS Code editor on Arch Linux.
Warp Terminal

There are two main choices for getting VS Code on Arch Linux:

  • Install Code - OSS from Arch repositories
  • Install Microsoft's VS Code from AUR

I know. It's confusing. Let me clear the air for you.

VS Code is an open source project but the binaries Microsoft distributes are not open source. They have telemetry enabled in it.

Code - OSS is the actual open source version of VS Code.

Think of Code - OSS as Chromium browser and VS Code as Google Chrome (which is based on Chromium browser).

Another thing here is that some extensions will only work in VS Code, not in the de-Micorsoft Code - OSS.

This is why you should think it through if you want to use Microsoft's VS Code or its 100% open sourced version.

Let me show you the steps for both installation.

Method 1: Install Code - OSS

βœ… Open source version of Microsoft VS Code
βœ… Easy to install with a quick pacman command
❌ Some extensions may not work

This is simple. All you have to do is to ensure that your Arch system is updated:

pacman -Syu

And then install Code - OSS with:

pacman -S code

It cannot be simpler than this, can it?

As I mentioned earlier, you may find some extensions that do not work in the open source version of Code.

Also, I had noticed earlier that Ctrl+C - Ctrl+V was not working for copy paste. Instead, it was defaulted to Ctrl+Shift+C and Ctrl+Shift+V for reasons not known to me. I had not made any changes to key bindings or had opted for a Vim plugin.

Removing Code OSS

Removal is equally simple:

sudo pacman -R code

Method 2: Install the actual Microsoft's VS Code

βœ… Popular Microsoft VS Code that is used by most people
βœ… Access to all proprietary features and extensions in the marketplace
❌ Installation may take effort if you don't have an AUR helper

If you don't care too much about ethics, open source principles and just want to code without thinking it too much, go with VS Code.

There are a couple of VS Code offerings available in the AUR but the official one is this.

Before installing it, you should remove Code OSS

sudo pacman -R code

If you have an AUR helper like yay already installed, use it like this:

yay -S visual-studio-code-bin

Otherwise, install yay first and then use it to install the desired package.

VS Code in Arch Linux

Don't be deceived by the pretty looking screenshot above. I was using a different theme in VS Code.

Removal

You can use your AUR helper or the super reliable pacman command to remove Microsoft VS Code from Arch Linux.

sudo pacman -R visual-studio-code-bin

I let you enjoy your preferred version of VS Code on Arch Linux. Please feel free to use the comment section if you have questions or suggestions.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries πŸ•΅οΈβ€β™‚οΈ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.