DEV Community

Kshitij Raj Sharma
Kshitij Raj Sharma

Posted on

Install open source version of VSCode in Ubuntu / Debian

As a developer, you're likely no stranger to Visual Studio Code (VS Code), a popular, feature-rich code editor developed by Microsoft. However, if you're looking for an open-source alternative that offers similar functionality, look no further than VSCodium.

Why VSCodium?

VSCodium is a community-driven, open-source fork of VS Code. It's designed to be compatible with VS Code extensions and settings, making it an attractive alternative for developers who want to avoid proprietary software.

Installing VSCodium on Ubuntu/Debian

Step 1: Add the VSCodium Repository

First, add the VSCodium repository to your system:

wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
    | gpg --dearmor \
    | sudo dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
Enter fullscreen mode Exit fullscreen mode

Then, add the repository:

echo 'deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://download.vscodium.com/debs vscodium main' \
    | sudo tee /etc/apt/sources.list.d/vscodium.list
Enter fullscreen mode Exit fullscreen mode

Step 2: Update and Install VSCodium

Update your package list and install VSCodium:

sudo apt update && sudo apt install codium
Enter fullscreen mode Exit fullscreen mode

Configuring VSCodium

Once installed, you can configure VSCodium to use the code command, just like VS Code:

sudo ln -s /usr/bin/codium /usr/bin/code
Enter fullscreen mode Exit fullscreen mode

Verify that the code command is working:

code --version
Enter fullscreen mode Exit fullscreen mode

Using VSCodium

You can now launch VSCodium using the code command:

code .
Enter fullscreen mode Exit fullscreen mode

or

code file.txt
Enter fullscreen mode Exit fullscreen mode

This will open VSCodium with the specified file or directory.

Resources

Known Issues

  • Some VS Code extensions may not work with VSCodium due to differences in the underlying architecture.
  • VSCodium may not receive updates as frequently as VS Code.

If you're interested in contributing to the project, check out the VSCodium GitHub repository.

Top comments (0)