×


How to Install VSCode on openSUSE Leap & Tumbleweed ?

Visual Studio Code (VSCode) is a powerful, open-source code editor from Microsoft. It has many features, such as syntax highlighting, code completion, refactoring, and debugging. VSCode is available for Linux, macOS, and Windows, and can be installed on openSUSE Leap and Tumbleweed. 

Here at IbmiMedia, we will show you how to install VSCode on openSUSE Leap and Tumbleweed.


Prerequisites 

  • A running openSUSE Leap or Tumbleweed system.
  • A user with sudo privileges.


Let's get started;


1. Update openSUSE

Before you install VSCode, you should make sure that your openSUSE system is up to date. You can do this by running the following command:

$ sudo zypper update


2. Import Visual Studio Code Repository

Now you need to import the Visual Studio Code repository. 

To do this, run the following command:

$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

This will add the Visual Studio Code repository to your system.


3. Install Visual Studio Code

Now you can install VSCode by running the following command:

$ sudo zypper install code

This will install VSCode on your system.


4. Launch Visual Studio Code

Once the installation is complete, you can launch VSCode by running the following command:

$ code

This will open the VSCode application.


5. Update Visual Studio Code

You can update VSCode by running the following command:

$ sudo zypper update code

This will update VSCode on your system.


How to Remove (Uninstall) Visual Studio Code from openSUSE Leap  system ?

If you want to remove VSCode from your system, you can do so by running the following command:

$ sudo zypper remove code

This will remove VSCode from your system.


[Need help in fixing Linux System issues ? We can help you. ]


Conclusion

This article covers how to install VSCode on openSUSE Leap and Tumbleweed. We have also covered how to update and remove VSCode. With this knowledge, you can now use VSCode on your openSUSE system.