---
Classes:
  - IT Foundations
---

# VS Code
VSCode if a very popular IDE.

## Install

### Flatpak (universal)
If you wish to install through flatpak ensure flatpak is setup, see [Flatpak](../Tools/Flatpak.md) for details if not.
```sh
flatpak install flathub com.visualstudio.code
```

### Arch-based
```sh
sudo pacman -S code
```

### Debian/Mint/Ubuntu
```sh
# Import Microsoft's signing key
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/keyrings/microsoft-archive-keyring.gpg

# Add the official repo
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/microsoft-archive-keyring.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'

# Update cache and install
sudo apt-get update
sudo apt-get install code
```

### Fedora
```sh
# Import Microsoft's signing key
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

# Add the official repo
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo

# Update cache and install
dnf check-update
sudo dnf install code
```
