Step 1 – Enable Package Repository
First of all, You need to enable package repository in your system. Run the following command to enable Visual studio code repository to your system.
echo "deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main" | sudo \ tee /etc/apt/sources.list.d/vs-code.list
Step 2 – Install Visual Studio Code Editor
Now, Import the package signing gpg key on your system using the following command.
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
After importing gpg key, Let’s use below commands to install Visual Studio Code on your Debian based system.
sudo apt-get update sudo apt-get install code
Step 3 – Launch Visual Studio Code
Now launch the Visual Studio Code editor on your system using the graphical menu. After that create a new file or open files and directories using the File menu.
Step 4 – Enable Required Extensions