GitHub Copilot Instructions With applyTo Frontmatter
In addition to project-wide .github/copilot-instructions.md, GitHub Copilot supports scoped instruction files in .github/instructions/*.instructions.md using YAML frontmatter applyTo globs to separate frontend vs. backend or TypeScript vs. Python guidance.
File: .github/instructions/react-components.instructions.md
---
applyTo: "**/*.tsx"
---
Use functional components with TypeScript interfaces. Always use server components unless client interactivity is required.Nobody has confirmed this prompt yet. If you try it, tell others whether it worked.
No comments yet.