How to Visual Studio Code on Manjaro 21 Linux

Visual Studio Code is a free source-code editor made by Microsoft for Windows Linux macOS. Visual Studio Code features include support for debugging, embedded Git control, intelligent code completion, snippets, and code refactoring. Microsoft Visual Studio Code also has an extensive extension library that can further support dedicated software development and coding to enrich and help develop and use the software.

In the following tutorial, you will learn how to install Microsoft’s Visual Studio Code (VSCode) on Manjaro 21 Linux. The tutorial will use the yay AUR helper, ideally most users may be using some wrapper for Pacman, for new users, it is essential to install one to keep your packages up-to-date while you learn Arch/Manjaro.

Update/Upgrade Manjaro

Update your system to make sure all existing packages are up to date.

sudo pacman -Syu

Install yay Helper

To begin the installation, you must have GIT installed to import the yay repository to install/build. From your command terminal, use the following code to begin the installation.

sudo pacman -S --needed --noconfirm base-devel git

Now clone the yay archive using the following terminal command.


git clone https://aur.archlinux.org/yay-git.git

Next, move the archive to the /OPT/ directory. This is a good location for any other archive installs, keep everything located, and traditionally the location is a commonly used area for different applications.

sudo mv yay-git /opt/

Now navigate to the yay-git directory location.

cd /opt/yay-git

Build the package using the makepkg command.

makepkg -si

Install VSCode

Now that you have installed the package management helper, you can install the Visual Studio Code by using the following command.

yay -S visual-studio-code-bin

Add --noconfirm to skip most of the questions for automatic default to all.

Confirm the version build installed using the following command.


visual-studio-code --version

Example output:

Launch VSCode

With the installation complete, you can run Visual Studio in a few different ways. First, while you are in your terminal, you can use the following command:

code

Alternatively, run the code command in the background to free up the terminal:

code &

However, this isn’t practical, and you would use the following path on the desktop to open with the path: Taskbar > Internet > Visual Studio Code.

Example:

Once open, you will see a default landing page to choose color themes, or else you can get started straight away.


Example:

Update/Upgrade VSCode

The best way to check for updates and upgrade Visual Studio Code is to use the following command.

yay -Syu --devel --timeupdate

Remove (Uninstall) VSCode

When you no longer want VSCode installed on your system, use the following command to remove it.

yay -Rns visual-studio-code-bin

Optionally, you can run the following command to clean up any leftover unused dependencies, and this is highly recommended to run, so your system does not become bloated.

yay -Yc

Comments and Conclusion

In the tutorial, you have learned how to install yay AUR helper quickly and install, maintain, and, if so, remove Microsoft Visual Studio Code on Manjaro Linux.

If you are looking for an editor that is lightweight, fast, and easy to use, Visual Code should be one of your top choices. With its popularity among developers, you will likely find support for the language or framework you are using. Give it a try today!



Not what you were looking for? Try searching for additional tutorials.

Leave a Comment