• How to install VSCode in Ubuntu and CentOS Linux

    To install VSCode in Ubuntu, follow the steps mentioned below:

    Step 1: Download the installer

    Navigate to the official VSCode website and download the installer. Click here to navigate to the download page.

    Step 2: Run the Installer

    If you are using the latest Ubuntu or Debian Linux distribution, then run the following command to install VSCode.

    sudo apt install ./<location_to_downloaded_file>.deb

    If you are using the old version of Ubuntu or Debian Linux distribution, then run the following command.

    sudo dpkg -i <location_to_downloaded_file>.deb
    sudo apt-get install -f

    If you are using CentOS-based distribution Linux, you can use the following command to install VSCode.

    sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

    Now, you can run the VSCode in your system and start coding.