Installing Visual Studio Code on Arch Linux

Posted on the 15 May 2023 by Top10

Arch Linux may not be as user-friendly as its Debian-based counterpart, Ubuntu. However, it is very popular with advanced users who like a little more control over their OS.

If you have a talent for writing code, you may be familiar with Visual Studio Code. People love VS Code because of the various plugins and functional variety of features.

Here are some ways to install Visual Studio Code on Arch Linux.

1. Install Visual Studio Code with Pacman

The first, most common, and most efficient installation method is to install Visual Studio Code using Pacman. The Pacman commands are quite simple and work on all Arch-based distributions, including Arch Linux, Manjaro, and elementary OS.

To install VS Code on Arch Linux using Pacman, run:

sudo pacman -S code

Remove Visual Studio Code with Pacman

To remove a VS Code package, use the following command:

sudo pacman -R code

2. Install Visual Studio Code from the AUR

To install Visual Studio Code from the Arch User Repository (AUR), use

yay -S visual-studio-code-bin

You need to first install yay on your system in order to run the above command.

Alternatively, you can install the development version of VS Code with the following command:

yay -S code-git

Select the default version by entering 4 when prompted for the installation type. You can follow the instructions on the screen to proceed and install the package according to your requirements.

Don't forget to enter your sudo password followed by y when prompted.

The command will install all the necessary dependencies on your computer and perform several important functions to keep Visual Studio Code running smoothly.

You can directly launch Visual Studio Code by opening it either from the application menu or from the command line by typing the code.

Remove Visual Studio Code with yay

To remove the Visual Studio Code AUR package and its installed dependencies, run:

yay -R visual-studio-code-bin
yay -R code-git

When the system asks for confirmation, type y followed by Enter.

3. Install Arch Linux from GUI

To install Visual Studio Code graphically, launch the Software application from the applications menu. Search for Visual Studio Code in the search bar.

Click on the relevant result and then click the "Install" button. Follow the instructions on the screen to complete the installation.

If you can't find an app called "Software", look for other similar apps like "Program Manager". Your desktop environment should have a graphical software manager that you can use to install applications.

To remove a package when you're done, go to Installed Applications, find VS Code, and click the Remove or Trash icon.

4. Install Visual Studio Code from the Snap Store

Another sneaky way to install Visual Studio Code on Arch Linux is from the Snap Store. You can install the Visual Studio Code snap package by running the following command:

sudo snap install code --classic

You need to first install yay on your system in order to run the above command.

Remove the VS Code Snap package.

To remove the VS Code snap package, run:

sudo snap remove code

Writing code using Visual Studio Code on Linux

To use Visual Studio Code on any Linux-based OS, there are always ways and means to install it, depending on your distribution. However, Ubuntu is still the perfect operating system for beginners, and the installation steps for Ubuntu are pretty straightforward and easy to follow.

If you're new to the Linux world and want to get your head around it, you should try installing your favorite IDE on Ubuntu before switching to any other Linux distribution.

2793000cookie-check Installing Visual Studio Code on Arch Linuxno

Similar

Инструкции,Программы,archlinux,visual studio code
#Installing #Visual #Studio #Code #Arch #Linux