> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Visual Studio Code

> Download and install VS Code directly on your Dragonwing device.

## Prerequisites

<CardGroup cols={2}>
  <Card title="Device flashed with Ubuntu" icon="microchip">
    Your Dragonwing device must be flashed with Ubuntu before proceeding.
  </Card>

  <Card title="Monitor, keyboard, and mouse" icon="display">
    Connect a monitor, keyboard, and mouse directly to the device.
  </Card>
</CardGroup>

## Get VS Code on the Device

<Tabs>
  <Tab title="Option 1 — Download directly on the device">
    <Note>
      This requires the device to have an internet connection. If the device does not have internet access, use Option 2.
    </Note>

    Follow the [VS Code Linux installation guide](https://code.visualstudio.com/docs/setup/linux) on the device.

    <Warning>
      Download the `.deb` package directly from the VS Code website. The **Snap Store version is not supported** by the extension.
    </Warning>
  </Tab>

  <Tab title="Option 2 — Transfer from a host machine">
    <Note>
      Use this approach if the device does not have internet access, for example in restricted network or VPN environments.
    </Note>

    On your host machine, follow the [VS Code Linux installation guide](https://code.visualstudio.com/docs/setup/linux) to download the **ARM64 `.deb`**. Then transfer it to the device using one of the following methods:

    **Via SSH (device and host on the same local network)**

    ```bash theme={null}
    scp code_*_arm64.deb <user>@<device-ip>:~/
    ```

    Replace `<user>` and `<device-ip>` with your device credentials.

    **Via USB stick (no network required)**

    Copy the `.deb` file to a USB stick, plug it into the device, then copy it to the home directory:

    ```bash theme={null}
    cp /media/<user>/<usb-label>/code_*_arm64.deb ~/
    ```
  </Tab>
</Tabs>

## Install VS Code

On the device, open a terminal and run:

```bash theme={null}
sudo apt install ./code_*_arm64.deb
```

Verify the installation:

```bash theme={null}
code -v
```

Expected output — version, commit SHA, and architecture:

```text theme={null}
1.78.1
a4e8254e63e4b7a72896e74e12cc2098fcda1d6e
arm64
```

Then launch VS Code to confirm the install was successful:

```bash theme={null}
code
```
