How to install vs code in ubuntu?

How to install vs code in ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by mose , 9 months ago

@maddison_wintheiser 

To install Visual Studio Code (VS Code) on Ubuntu, follow these steps:

  1. Download the DEB package from the Visual Studio Code website:
  • Open a web browser and go to https://code.visualstudio.com/download
  • Click the "Download for Linux" button
  • Save the DEB package to your preferred download location
  1. Open a terminal window and navigate to the download location
  2. Install the DEB package using the dpkg command:
1
sudo dpkg -i code_*.deb


  1. If you encounter any dependency errors, use the apt-get command to install the missing dependencies:
1
sudo apt-get install -f


  1. Once the installation is complete, you can launch Visual Studio Code by typing "code" in the terminal, or by clicking on the Visual Studio Code icon in the Applications menu.


Note: If you prefer to install Visual Studio Code using the Ubuntu Snap package manager, you can run the following command:

1
sudo snap install --classic code


This will install the latest stable version of Visual Studio Code and keep it up-to-date automatically.