How to Install VSCode on openSUSE Leap & Tumbleweed

Visual Studio Code (VSCode) is a powerful, open-source code editor that can significantly benefit developers working on their daily projects on OpenSUSE Leap or Tumbleweed desktop. VSCode offers a range of features and tools that can help increase productivity and streamline development. It has a user-friendly interface and is highly customizable, making it an excellent choice for developers of all skill levels. VSCode also offers support for extensions, which can further enhance its functionality and customize it to the user’s needs.


  • Integrated Development Environment (IDE)
  • Code Editor with syntax highlighting and code completion
  • Built-in debugging tools
  • Support for multiple programming languages
  • Extension support for additional functionality
  • Customizable interface and user settings
  • IntelliSense for intelligent code completion and suggestions
  • Integrated Git support
  • Built-in terminal
  • Code refactoring and navigation tools
  • Live linting and error checking
  • Integrated code searching and searching across files
  • Multi-cursor and multi-selection for advanced editing
  • Code snippets for faster and more efficient coding.

This guide will show you how to add the official Microsoft repository for Visual Studio Code to your OpenSUSE Leap or Tumbleweed desktop and install either the stable or preview version of the software.

Step 1: Update openSUSE

It is essential to ensure that your system is up-to-date before installing Visual Studio Code to avoid any conflicts during the installation process. You can use the following terminal commands to update your system.

sudo zypper ref
sudo zypper up

It’s important to reboot your system after updating, mainly if the updates include a new kernel or if you’ve installed many updates. This will ensure that all the changes take effect and your system runs smoothly.


Step 2: Import Visual Studio Code Repository

By default, Visual Studio Code is not included in the OpenSUSE repositories. However, it is easy to add the official Visual Studio Code repository to your system and install it.

Use this command to add the Visual Studio Code repository.

sudo zypper ar vscode

Example output:

Adding repository 'vscode' .............................................................................................................[done]
Repository 'vscode' successfully added

URI         :
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities are without effect. All enabled repositories share the same priority.

After that, add the GPG key to verify the package’s authenticity.

sudo rpm --import

Step 3: Install Visual Studio Code

Once the repository is added, update your package manager’s list of sources to include it before installing Visual Studio Code. Use this command in your terminal to do so.

sudo zypper refresh

After that, you can install the “stable” or the “insiders” version, also known as the beta build. Users who want to install both can do so, as they have separate installations.

To install Visual Studio Code, the stable branch, use the following command.

sudo zypper install code

Next, if you want to install Visual Studio Code with the insider’s branch, use the following command.

sudo zypper install code-insiders

Or install them both together.

sudo zypper install code code-insiders

Step 4: Launch Visual Studio Code

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:


Insider users would instead use the following command.


However, this may not be the most convenient way, and you can use the following path on your desktop to open it instead:


Activities > Show Applications > Visual Studio Code {version}.


Taskbar > Internet > Visual Studio Code {version}.

Example from openSUSE Leap KDE:

When you launch Visual Studio Code for the first time, you will be prompted to select a theme for your interface, and you will be able to customize the IDE to suit your needs and preferences. You can adjust settings like font size, color scheme, and layout and install extensions that add additional features and functionality to the IDE. This will help you tailor your development environment to your specific needs and make your coding experience more efficient and pleasant.

Congratulations! You have successfully installed Visual Studio Code on your OpenSUSE Leap or Tumbleweed desktop.

See also
How to Install Visual Studio Code on Linux Mint 21 or 20

Additional Commands & Tips

Update Visual Studio Code

To keep Visual Studio Code up-to-date, you can use the zypper update command in your terminal just as you would check for updates for your entire system. This command will check for any available updates for installed packages, including Visual Studio Code.

sudo zypper refresh

Additionally, it’s a good practice to update your software regularly to stay secure, as the updates may include security patches.

Remove (Uninstall) Visual Studio Code

To uninstall Visual Studio Code from your system, you can use the following command in your terminal.

sudo zypper remove code

If you installed the insider’s build with the standard stable version, you could remove this particular version using the following command.

sudo zypper remove code-insiders


Installing Visual Studio Code on openSUSE Leap or Tumbleweed is a straightforward process. By importing the official Microsoft repository, adding the GPG key, updating the package manager’s list of sources, and then using the appropriate command, you can easily install the software’s stable or preview version.

Leave a Comment

Share to...