Communicating better for a Super Intelligent World

c/SoftwareEngineering · Microsoft Copilot · u/prompts360 Expert · 5d ago · edited

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.

Log in to say it worked for you.

0 comments save
embed

Log in or sign up to comment.

No comments yet.