GitHub Copilot & VS Code
GitHub Copilot in VS Code unterstützt repositoryweite Anweisungen, pfadbeschränkte .instructions.md-Dateien sowie Streamable-HTTP-MCP-Server in .vscode/mcp.json.
Ablageort für DESIGN.md und Anweisungen
my-app/
├── DESIGN.md
├── .github/
│ ├── copilot-instructions.md
│ └── instructions/
│ └── design.instructions.md
└── .vscode/
└── mcp.jsonDESIGN.md in Copilot-Anweisungen einbinden
Pfadbeschränkte Anweisungsdatei (.github/instructions/design.instructions.md)
Nutze applyTo-Globs, damit Copilot Designsystem-Regeln nur beim Bearbeiten von UI-Code anhängt:
---
applyTo: "src/components/**/*.{tsx,jsx,css},src/app/**/*.{tsx,jsx,css}"
---
Read `DESIGN.md` at the repository root before creating or editing UI components.
Use only the colors, typography, spacing, corner radii, and component states specified there, and follow its Do's and Don'ts.Repositoryweiter Fallback (.github/copilot-instructions.md)
## Design System
Visual tokens and UI layout constraints live in `DESIGN.md`. Apply them on every frontend component, page, and CSS update.DesignMD Pro MCP-Server in VS Code verbinden
VS Code verwendet einen "servers"-Root-Schlüssel mit "type": "http" in .vscode/mcp.json (oder in den Benutzereinstellungen):
{
"servers": {
"designmdpro": {
"type": "http",
"url": "https://designmdpro.app/mcp"
}
}
}Verwende bei einem Pro-API-Key (dmdp_… aus Konto → API-Schlüssel) eine VS-Code-Eingabevariable, damit Secrets nicht in Git landen:
{
"inputs": [
{
"type": "promptString",
"id": "designmdpro-api-key",
"description": "DesignMD Pro API Key (dmdp_...)",
"password": true
}
],
"servers": {
"designmdpro": {
"type": "http",
"url": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer ${input:designmdpro-api-key}"
}
}
}
}Für schnelle lokale Tests ohne inputs kannst du "Authorization": "Bearer dmdp_your_api_key" auch direkt in den Benutzereinstellungen hinterlegen.
Prompt-Vorlagen
#file:DESIGN.md Build a billing status banner component in src/components/.
Match the exact colors, spacing, and Shapes rules in DESIGN.md.Use #designmdpro to search for fintech design systems, pull the Colors and
Typography sections, and propose an accessible dark-mode token block for our DESIGN.md.Häufige Stolperfallen
"mcpServers"statt"servers"in.vscode/mcp.jsonverwenden: VS Code verlangt"servers"mit"type": "http", anders als Cursor oder Windsurf.- API-Keys im Klartext in
.vscode/mcp.jsoncommitten:.vscode/mcp.jsonist normalerweise in Git eingecheckt; nutze fürdmdp_…-Keys immer${input:...}oder Benutzereinstellungen.
Nächste Schritte
- MCP-Server-Setup-Seite — Snippets für alle vier Clients kopieren
- Validator & Lint-Regeln — generierte Änderungen gegen Kontrastregeln prüfen
Last updated on