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

# 安装 Visual Studio Code

> 直接在您的 Dragonwing 设备上下载并安装 VS Code。

## 前提条件

<CardGroup cols={2}>
  <Card title="已烧录 Ubuntu 的设备" icon="microchip">
    继续操作前，您的 Dragonwing 设备必须已烧录 Ubuntu。
  </Card>

  <Card title="显示器、键盘和鼠标" icon="display">
    将显示器、键盘和鼠标直接连接到设备。
  </Card>
</CardGroup>

## 在设备上获取 VS Code

<Tabs>
  <Tab title="方式 1 — 直接在设备上下载">
    <Note>
      这需要设备具有互联网连接。如果设备无法访问互联网，请使用方式 2。
    </Note>

    在设备上按照 [VS Code Linux 安装指南](https://code.visualstudio.com/docs/setup/linux)操作。

    <Warning>
      直接从 VS Code 网站下载 `.deb` 包。扩展**不支持 Snap Store 版本**。
    </Warning>
  </Tab>

  <Tab title="方式 2 — 从主机传输">
    <Note>
      如果设备无法访问互联网（例如在受限网络或 VPN 环境中），请使用此方法。
    </Note>

    在您的主机上，按照 [VS Code Linux 安装指南](https://code.visualstudio.com/docs/setup/linux)下载 **ARM64 `.deb`**。然后使用以下方法之一将其传输到设备：

    **通过 SSH（设备和主机位于同一本地网络）**

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

    将 `<user>` 和 `<device-ip>` 替换为您的设备凭据。

    **通过 U 盘（无需网络）**

    将 `.deb` 文件复制到 U 盘，将其插入设备，然后复制到主目录：

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

## 安装 VS Code

在设备上打开终端并运行：

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

验证安装：

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

预期输出 — 版本、提交 SHA 和架构：

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

然后启动 VS Code 以确认安装成功：

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