For AI agents: the complete documentation index is available at https://rstest.rs/zh/llms.txt, the full documentation bundle is available at https://rstest.rs/zh/llms-full.txt, and this page is available as Markdown at https://rstest.rs/zh/guide/basic/vscode-extension.md.
close
  • 简体中文
  • VS Code 扩展

    Rstack VS Code 扩展将 Rstest 接入 VS Code 的 Test Explorer,方便你在编辑器内浏览、运行和调试测试。一次安装即可覆盖测试、检查和格式化在内的整个 Rstack 工具链。

    VS Code 扩展中运行 Rstest 测试的演示

    安装

    可以从 Visual Studio Code Marketplace 安装,或在 VS Code 内直接安装:

    • 打开「扩展」视图(Ctrl/⌘ + Shift + X),搜索 rstack.rstack。
    • 打开「快速打开」面板(Ctrl/⌘ + P),输入 ext install rstack.rstack 并按 Enter。
    • 也可以在终端执行 code --install-extension rstack.rstack。

    Cursor、Trae、VSCodium 等 VS Code 衍生编辑器可从 Open VSX Registry 安装。

    从独立的 Rstest 扩展迁移

    独立的 rstack.rstest 扩展已停止新功能开发。过渡期间它仍会保持发布并可正常使用,但建议切换到 rstack.rstack:

    1. 按上述方式安装 rstack.rstack。
    2. 禁用或卸载 rstack.rstest,避免同时运行两份 Rstest。
    3. 在 rstack.rstest.* 下重新填写配置,并将快捷键重新绑定到新的 rstack.rstest.* 命令 ID(配置不会自动迁移)。详见迁移说明。