What is Visual Studio Code?
Visual Studio Code is the free, lightweight, and open-source, world’s most popular cross-platform code editor developed by Microsoft. It is available for Windows, Linux, and macOS and supports all programming languages, including JavaScript, TypeScript, Python, Ruby, etc. Before jumping to the tutorial of How to Download and Install Visual Studio Code on Ubuntu 22.04 steps, it’s good to know the best features of Visual Studio Code.
Visual Studio Code Features ~
Visual Studio Code has features like
- syntax highlighting
- code completion
- debugging tools
- Extensions
- Git Integration
- Integrated Terminal
- Customizable UI etc.
It also has a large and active community of developers. Let’s start installation visual studio code ubuntu.
VS Code Requirements :
- Ubuntu 22.04 installed system
- A stable internet connection
- Administrator privileges
How do I install VS Code on Ubuntu 22.04 | 20.04 | 18.04?
Here’s a step-by-step guide to installing Visual Studio Code on ubuntu linux:
Graphical Way:
Step 1: Download Visual Studio Code
Go to VS Code’s official website and download the deb file https://code.visualstudio.com/Download
or,
Step 2: Install Visual Studio Code
To install visual studio code ubuntu deb file, open terminal by pressing Ctrl + Alt + T
and navigate to download folder
cd ~/Download
sudo apt install <file_name> -y
sudo apt install code_1.77.1-1680651665_amd64.deb -y
Step 2: Verify and open Visual Studio Code
now search for code
in application search bar or type code in terminal and start using it!
Comandline Way:
Step 1: Update Ubuntu System:
First update your ubuntu system by running –
sudo apt update
sudo apt install code -y
Step 2: Install VS Code Ubuntu Terminal
Now time to install visual studio code ubuntu 22.04 command line
sudo apt install code -y
Step 3: Launch visual studio code
as same as graphical way just type code in your terminal toopen visual studio code from terminal ubuntu
code . #for opening code with current folder
code folder/or/file # for opening with only seleted file or folder
How to install extension in vs code ubuntu?
- Open Visual Studio Code
- Click on the Extensions icon on the left sidebar
- Search for “Python” and click on the extension made by Microsoft
- Click the Install button, then the Reload button on the right side
That’s it
How to remove vs code ubuntu?
For any reason unsintall the code
sudo apt remove code -y
Note: If you want to remove its dependencies:
sudo apt-get autoremove
This command will remove all the dependencies of code.
The Short Note:
In this tutorial, I’ve shown you how to install visual studio code ubuntu terminal 22.04 or any other veriosns if you have any difficulties felle free to comment bellow!
Thanks 🙂 Happy cooooooding!
Related blog: How to Install IntelliJ IDEA on Ubuntu 22.04?