·component-fixtures
*

component-fixtures

在创建或更新用于屏幕截图测试的组件固定装置时,或者在设计适合固定装置的 UI 组件时使用。涵盖固定文件结构、主题、服务设置、CSS 范围、异步渲染和常见陷阱。

34安装·1热度·@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-10

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