# Linux Install Visual Studio Code

🪽I'm migrating to new dev-pc where I installed Zorin 18 (based on debian linux). I need to install my main text editor (VS Code) when looking at ways to install I found 3 of them

- Apt: best system integration, no sandbox. to update manually, use`apt update`
- Flatpak image: I found it in software center. The is sandboxed. Its good for portability. To update manually use command `flatpak update`
- Tarball: you can download that from vscode page. Most manual option. No sandbox, as a result is lightweight. You have no updates so have to do it mannualy.

Since I want best integration of the software in OS I used APT. Since vscode was not in my repo list I had to follow these steps to add it and then install.

1. prerequisites

```shell
sudo apt update
sudo apt install wget gpg
```

2. add Microsoft signing key

```plaintext
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | \
  gpg --dearmor | \
  sudo tee /etc/apt/keyrings/packages.microsoft.gpg > /dev/null
```

3. add repository

```shell
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | \
  sudo tee /etc/apt/sources.list.d/vscode.list
```

4. Finally Install VS Code

```shell
sudo apt update
sudo apt install code

So now you have VScode running and you will receive notification when the update is available. Keep learning and coding, dev-san.👏
```
