Master the Installation of Visual Studio Code on Linux: A Comprehensive Guide


In the modern age, Visual Studio Code is a powerhouse for any Linux user wanting to code efficiently and productively. This open-source and free code platform offers a host of features including debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git. This article provides a detailed guide on how to install Visual Studio Code on a Linux system.

1. **Prerequisites for Installing Visual Studio Code on Linux

Before you begin the installation process, ensure your Linux system is up to date. Running the following commands will update and upgrade your system:

sudo apt-get update
sudo apt-get upgrade

Also, Visual Studio Code requires GTK+ 3.20 or higher, GNOME (libsecret) 3.18 or higher, and GLib/GIO/GObject 2.40 or higher. Ensure these dependencies are in place.

2. **Download Visual Studio Code

The first step in installing Visual Studio Code on Linux is downloading the software. You can do this by visiting the Visual Studio Code download page. Choose your version according to your Linux architecture i.e., 64 bit or 32 bit. Use the following command to find out your system architecture:

uname -m

After obtaining the download link, use wget to download the .deb package:


3. **Installation of Visual Studio Code

With the Visual Studio Code package downloaded, it’s time for installation. Begin the installation by executing the following command:

sudo dpkg -i code_*.deb

This command will install Visual Studio Code and its required dependencies. If your system lacks any dependencies, run this command:

sudo apt-get install -f

4. **Start Visual Studio Code

After successfully installing Visual Studio Code on your Linux system, you can start it in the following ways:

  1. By running the code command in the terminal
  2. By clicking on the Visual Studio Code icon, which you can find in the Application Menu

5. **Verify Your Installation

To verify if you’ve successfully installed Visual Studio Code on your system, open a terminal and type:

code --version

6. Uninstallation

If for any reason you want to uninstall Visual Studio Code from your Linux system, use the following command:

sudo apt-get purge code


With Visual Studio Code successfully installed on your Linux system, you can now reap the benefits of this powerful platform. This free to use, open-source and lightweight editor is a preferred choice for numerous developers owing to its strong debugging capability, embedded Git control, syntax highlighting and intelligent code completion. Happy coding!

Related Posts

Leave a Comment