How to install vs code in ubuntu?

How to install vs code in ubuntu?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by mose , 2 years 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.

Member

by johann , a year ago

@maddison_wintheiser 

Alternatively, you can also install Visual Studio Code using the Ubuntu Software Center:


Open the Ubuntu Software Center application. Search for "Visual Studio Code" in the search bar. Click on the "Visual Studio Code" result. Click the "Install" button. Authenticate with your password. Wait for the installation to complete. Once the installation is finished, you can launch Visual Studio Code from the Applications menu or by typing "code" in the terminal.


Note: Both methods will install the stable version of Visual Studio Code.