This post shows students and new users steps to install and use Microsoft Visual Studio Code (vs. code) on Ubuntu Linux. Visual Studio Code is an open-source, cross-platform, feature-rich code editor developed by Microsoft.
VS Code supports Git control, syntax highlight, and code completion. Also, it combines simplicity and speed for any developer looking to build great applications across different platforms.
The easiest way to install VS Code on Ubuntu Linux is to enable the VS Code repository and install its package using the command line interface.
Below, we’ll show you how to do that when using Ubuntu Linux.
How to install VS Code on Ubuntu Linux
As mentioned above, Visual Studio Code is an open-source, cross-platform, feature-rich code editor developed by Microsoft.
Below is how to install VS code on Ubuntu Linux:
First, run the commands below to install some dependencies on Ubuntu Linux.
sudo apt install gnupg2 software-properties-common apt-transport-https wget
After installing the packages above, run the commands below to import VS code repository GPG key to
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
Next, run the commands below to install VS code repository on Ubuntu Linux.
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Once the repository is installed, run the commands below to install VS code in Ubuntu Linux.
sudo apt update sudo apt install code
VS code should now be installed on Ubuntu Linux. Next, navigate to your desktop apps and search for them.

That should do it!
Conclusion:
- Visual Studio Code is a versatile, feature-rich code editor compatible with various platforms
- Git control, syntax highlighting, and code completion are among the features supported by VS Code
- Installation on Ubuntu Linux involves enabling the VS Code repository and utilizing command line interface for package installation
- By following these steps, developers can seamlessly install and utilize VS Code for their coding projects
Leave a Reply