- How to Install Visual Studio Code Editor in Fedora & CentOS/a>
- How to Install Visual Studio Code Editor in openSUSE & SLE
Step #1. Enable Package Repository
First of all, You need to enable package repository in your system. Create a new file /etc/apt/sources.list.d/vscode.list and edit in text editor. Now add following content to the file.
deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main
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. Open Visual Studio Code
Now launch the Visual Studio Code editor on your system using graphical menu. After that create new file or open files and directories using File menu.
Step #4. Add Required Extensions