Visual Studio Code is a platform created by Microsoft for Linux, macOS, and Windows. It supports features like syntax highlighting, debugging, intelligent code completion, snippets code refactoring, and embedded Git. You can also customize it by changing the theme and adding extensions that add additional functionality.
Here at LinuxAPT, we shall look into how to install Visual Studio Code on your Manjaro Linux machine.
To see how to install Visual Studio Code on Linux Mint 20, visit: https://linuxapt.com/blog/1096-install-visual-studio-code-on-linux-mint-20
1. Snapd Installation
To proceed with the installation of Visual Studio, you will need to have Snapd on our system. We can install it using the following command:
$ sudo pacman -S snapd
Snaps are a distro-independent way for packaging and distributing Linux software. What it means is that software that is not compatible with current system libraries will still work when packaged as a Snap.
2. Enable Snapd Socket
Here, we will be to enable the main snap communication socket. It will be done when we run the following command:
$ sudo systemctl enable --now snapd.socket
3. Create a link between /var/lib/snapd/snap and /snap
Here, we will enable classic snap support by creating a symbolic link between /var/lib/snapd/snap and /snap. To do that run the below command:
$ sudo ln -s /var/lib/snapd/snap /snap
To ensure that the snaps paths are updated correctly, either reboot your system or log out and then log in.
4. Install Visual Studio
Now finally we will install Visual Studio Code by running the below command:
$ sudo snap install code --classic
5. Verify Visual Studio Code's Installation