How to install Visual Studio Code on Fedora 36

In this article we are going to learn how to install Visual Studio code also know as (VScode) on Fedora 36. Visual Studio Code is a lightweight source code editor which runs on desktops and is available to all operating systems out there. It comes with built in Javascript, Node.js and Typescript. One can do programming for almost languages with ease with Visual Studio Code. The languages supported are like, Go, PHP, C++, C#, Java, Python and also .NET.

Why do we like Visual Studio Code?

The reason VS code is such a nice tool is because of the following reasons:

  • It is available on all operating systems so it does not limit one on where to run the VS code, you can easily hit the ground running.
  • Vscode has a rich build-in developer tooling for example IntelliSense code completion and debugging which become handy when you don not know the complete code snippet. IT acts a guide and also lessen time to code.
  • VScode can be customized to suit your needs. You can customize every feature the way you wish and also you can add third party extensions easily.
  • VScode is an open source project. So it means you can contribute to the project development, also it means that you have a bigger community where you can ask questions whenever you are faced with problem.
  • VScode is built for the web. It includes great tools for web development such React JSx, JSON, SCSS,CSS, HTML and Less.

Install Visual Studio code on Fedora 36

1. Update system repositories

In order not to run into any errors during your installation, you need to update your system repositories in order to make them up to date.

$ sudo dnf update

2. Add key to the repository

Currently the Visual studio code ships 64 bit version using the yum repository. So lets import the key to sign our repos using the following command.

$ sudo rpm --import

After you have imported the key, add Visual studio code to the yum repositories.

$ sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=\nenabled=1\ngpgcheck=1\ngpgkey=" > /etc/yum.repos.d/vscode.repo'

The next thing is to update your system repositories for the changes to be effected.

$ sudo dnf check-update 
Visual Studio Code                               38 MB/s |  26 MB     00:00    
Last metadata expiration check: 0:00:06 ago on Mon Jul  4 07:50:47 2022.

3. Install Visual Studio code on Fedora 36

To install Visual studio code run the following command on your terminal.

$ sudo dnf install code 

You should get something like this.

# output
 code                    x86_64 1.68.1-1655263151.el7             code    112 M
Installing dependencies:
 adwaita-cursor-theme    noarch 42.0-1.fc36                       fedora  622 k
 adwaita-icon-theme      noarch 42.0-1.fc36                       fedora  4.2 M
 alsa-lib                x86_64                    updates 502 k
 at-spi2-atk             x86_64 2.38.0-4.fc36                     fedora   86 k
 at-spi2-core            x86_64 2.44.1-1.fc36                     updates 178 k
 atk                     x86_64 2.38.0-1.fc36                     fedora  272 k
 avahi-glib              x86_64 0.8-15.fc36                       fedora   15 k
 cairo                   x86_64 1.17.6-1.fc36                     fedora  675 k
 cairo-gobject           x86_64 1.17.6-1.fc36                     fedora   18 k
 cdparanoia-libs         x86_64 10.2-39.fc36                      fedora   54 k
 colord-libs             x86_64 1.4.6-1.fc36                      fedora  233 k
 cups-libs               x86_64 1:2.4.2-1.fc36                    updates 266 k
 exempi                  x86_64 2.6.0-0.2.20211007gite23c213.fc36 fedora  540 k
 exiv2-libs              x86_64 0.27.5-2.fc36                     fedora  770 k

4. Set Visual studio code as default editor

if you want Visual studio code as your default code editor, you can do so with the help of the following command.

$ xdg-mime default code.desktop text/plain

To start using Visual studio code type code on your terminal.

$ code 

5. Uninstall Visual Studio code

To remove visual studio code from your system, use the following command.

sudo dnf remove code 

About Kipkoech Sang

I am a technology enthusiast who loves to share gained knowledge through offering daily tips as a way of empowering others. I am fan of Linux and all other things open source.
View all posts by Kipkoech Sang →

Leave a Reply

Your email address will not be published. Required fields are marked *