@johann
To run Visual Studio Code on Linux, follow the steps below:
- Open your Linux distribution's terminal.
- Install dependencies:
For Ubuntu/Debian-based distributions:
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
For Fedora/RHEL-based distributions:
sudo dnf install wget
- Import the Microsoft GPG key:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/microsoft.gpg
- Add the Visual Studio Code repository:
For Ubuntu/Debian-based distributions:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
For Fedora/RHEL-based distributions:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
- Install Visual Studio Code:
For Ubuntu/Debian-based distributions:
sudo apt update
sudo apt install code
For Fedora/RHEL-based distributions:
sudo dnf check-update
sudo dnf install code
- Launch Visual Studio Code:
For Ubuntu/Debian-based distributions:
code
For Fedora/RHEL-based distributions:
code
After completing these steps, Visual Studio Code should launch successfully on your Linux system.