·component-fixtures
*

component-fixtures

在建立或更新用於螢幕截圖測試的元件固定裝置時,或在設計適合固定裝置的 UI 元件時使用。涵蓋固定文件結構、主題、服務設定、CSS 範圍、非同步渲染和常見陷阱。

36安裝·4熱度·@microsoft

安裝

$npx skills add https://github.com/microsoft/vscode --skill component-fixtures

如何安裝 component-fixtures

透過命令列快速安裝 component-fixtures AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/microsoft/vscode --skill component-fixtures
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:microsoft/vscode。

SKILL.md

查看原文

Component fixtures render isolated UI components for visual screenshot testing via the component explorer. Fixtures live in src/vs/workbench/test/browser/componentFixtures/ and are auto-discovered by the Vite dev server using the glob src//.fixture.ts.

Use tools mcpcomponent-exp to list and screenshot fixtures. If you cannot see these tools, inform the user to them on.

Each fixture file exports a default defineThemedFixtureGroup(...). The file must end with .fixture.ts.

在建立或更新用於螢幕截圖測試的元件固定裝置時,或在設計適合固定裝置的 UI 元件時使用。涵蓋固定文件結構、主題、服務設定、CSS 範圍、非同步渲染和常見陷阱。 來源:microsoft/vscode。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/microsoft/vscode --skill component-fixtures
分類
*創意媒體
認證
收錄時間
2026-03-01
更新時間
2026-03-11

Browse more skills from microsoft/vscode

快速解答

什麼是 component-fixtures?

在建立或更新用於螢幕截圖測試的元件固定裝置時,或在設計適合固定裝置的 UI 元件時使用。涵蓋固定文件結構、主題、服務設定、CSS 範圍、非同步渲染和常見陷阱。 來源:microsoft/vscode。

如何安裝 component-fixtures?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/microsoft/vscode --skill component-fixtures 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/microsoft/vscode