VSCode: Setup Vala Autocompletion

How to setup VSCodium (Open Source Visual Studio Code) with Vala autocompletion.

elementary OS: 6.0 Odin Status: Verified

If you like my work, ❤️ Sponsor Me. It would mean the world to me!

Install VSCodium

Add the GPG key of the repository:

wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/vscodium.gpg

Add the repository:

echo 'deb https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main' | sudo tee --append /etc/apt/sources.list.d/vscodium.list

Update package information and install vscodium:

sudo apt update && sudo apt install codium

Setup Vala Autocompletion

To begin with, you need to install the Vala Plugin for Visual Studio Code:

  1. Visit the plugin's website and click "Download Extension" (a *.vsix file)

  2. Run VSCodium

  3. From within VSCodium, open the Extensions tab (Ctrl + Shift + X)

  4. Click ... > Install from VSIX... on top of the Extensions sidebar

  5. Select the previously downloaded *.vsix file and click Install

Now you can install the Vala Language Server. For this, open a Terminal and execute the following commands:

sudo add-apt-repository ppa:prince781/vala-language-server
sudo apt install vala-language-server

Further Reading