As a developer, you are likely familiar with Microsoft’s free and open-source code editor, Visual Studio Code. This powerful editor streamlines development across different operating systems, with built-in debugging support for Node.js and the ease of creating Git repositories for websites. In this guide, we’ll go through a simple process for installing VS Code on Debian 11 Bullseye Linux.
Simple Steps to Install VS Code on Debian 11 or 10
The following steps also apply to other Linux distributions, including Ubuntu, Kali Linux, Linux Mint, Elementary OS, MX Linux, and POP! OS.
#1: Installing Using Repository
The repository installation is the most straightforward method for installing VS Code on Debian 11 Bullseye Linux. Here’s what to do:
- Get the VS Code GPG Key:
curl -sSL https://packages.microsoft.com/keys/microsoft.asc -o microsoft.asc
gpg –no-default-keyring –keyring./ms_vscode_key_temp.gpg –import./microsoft.asc
gpg –no-default-keyring –keyring./ms_vscode_key_temp.gpg –export >./ms_vscode_key.gpg
sudo mv ms_vscode_key.gpg /etc/apt/trusted.gpg.d/
- Add VS Code Repository to Debian 11:
echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main”| sudo tee /etc/apt/sources.list.d/vscode.list
- Update your System:
sudo apt update
- Install VS Code:
sudo apt install code
- Uninstall (optional):
sudo apt remove code
sudo rm /etc/apt/sources.list.d/vscode.*
sudo rm /etc/apt/trusted.gpg.d/ms_vscode_key.gpg
#2: Installing Directly from the Deb Binary File
You can also install VS Code on Debian 11 Bullseye Linux by downloading a.deb file directly from the official website. Here are the steps:
- Download VS Code for Debian Linux from the official website.
- Open the Command Terminal and navigate to the Downloads directory.
- Install the .deb file using the APT package monitor or DPKG tool:
sudo apt install ./file-name.deb (replace file-name.deb with the actual name of the file downloaded from VS Code)
- Run the code editor:
- Go to “All Applications,” find VS Code, and click on the icon to start it.
- Uninstall (optional):
sudo apt remove code
In summary, it’s easy and straightforward to install VS Code on Debian 11 Bullseye Linux using either a repository or a.deb binary file.
Frequently Asked Questions:
1. What is Visual Studio Code?
Visual Studio Code (VS Code) is a free and open-source code editor designed for developing and debugging various applications using different programming languages.
2. Can I install VS Code on other Linux distributions?
Absolutely! VS Code supports several Linux distributions such as Kali Linux, Ubuntu, Linux Mint, Elementary OS, and MX Linux, among others.
3. How do I uninstall VS Code on Debian 11 Bullseye Linux?
You can uninstall VS Code on Debian 11 Bullseye Linux by running the command “sudo apt remove code” in the terminal.
4. Is it necessary to add GPG key and repository in Debian 11 for installing VS Code?
Yes, it’s required to add GPG key and repository for VS Code installation to prevent package errors.
Conclusion
That’s it! By following these simple steps, you can quickly install the powerful Visual Studio Code editor on Debian 11 Bullseye Linux using either a repository or a.deb binary file. Do share this guide with your networks and feel free to reach out to us if you have any more questions.