Skip to content
Discussion options

You must be logged in to vote

Hey
Instead of sub-folder instruction files (which Copilot doesn't automatically detect), try this:

Single Instructions File with Language Sections

Place all rules in .github/copilot-instructions.md at the repo root, organized by language:

my-monorepo/
├── .github/
│ └── copilot-instructions.md ← All rules here (organized by language)
├── apps/
│ ├── backend-py/
│ │ └── main.py
│ └── frontend-ts/
│ └── App.tsx

Inside copilot-instructions.md:

# TypeScript Conventions
- PascalCase components
- Absolute imports

# Python Conventions
- PEP 8 compliance
- Ruff/isort for imports

For stricter enforcement, combine with ESLint/Prettier (TS) and Ruff/Black (Python) configs — Copilot reads these an…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sudeep-tech1010
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copilot Code accurately and faster with your AI powered pair-programmer. Question Ask and answer questions about GitHub features and usage Copilot in GitHub Copilot functionality in GitHub Copilot Chat and in github.com Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
3 participants