GitHub Copilot applyTo Glob Tester
Check which repository paths match your instruction patterns. Test comma-separated alternatives and see the pattern responsible for each match.
Pattern match results
Add patterns and paths to begin.
This checks patterns, not actual instruction loading.
Review this snippet and add your instruction body below it. This is not a validation of the rest of your file.
Read your patterns correctly
Patterns are combined with OR: a file matches when at least one listed pattern matches its entire relative path. A root pattern like *.ts does not automatically include subfolders. src/**/*.ts includes TypeScript files directly in src and deeper within it.
| Pattern | Matches |
|---|---|
** or **/* | Files at any depth, including root files |
src/*.ts | src/app.ts, but not src/ui/app.ts |
**/*.ts,**/*.tsx | Either extension at any depth |
**/*.{ts,tsx} | Flat brace alternatives in this VS Code glob model |
tests/test?.[jt]s | One-character wildcard and a character class |
src/[[]id[]]/** | Paths under a literal [id] folder |
This tester supports *, a whole-segment **, ?, flat brace alternatives, character ranges and negated character classes. Nested braces, shell extglobs, gitignore exclusions and ambiguous double-stars inside a segment are reported as unsupported. Patterns use forward slashes. Limits: 32 expanded patterns and 256 characters per expanded pattern.
When matching files still does not load instructions
Check the instruction filename and location, the selected client or agent, enabled settings and any excludeAgent metadata. In VS Code, inspect instruction diagnostics and response references. In Copilot CLI, use /instructions to inspect discovered files. A matching pattern cannot confirm any of these loading steps.
VS Code can also load instructions because their description is relevant to a task or because you attach them manually. That behavior is outside this pattern check.
This uses a bounded implementation of the documented GitHub pattern-list examples and VS Code glob syntax. It is not the Copilot runtime and does not promise identical behavior across clients or versions. Select case sensitivity explicitly and confirm the result in your actual client. All inputs stay in this page.
Rules checked October 28, 2026: GitHub instruction pattern examples, VS Code glob syntax, VS Code instruction discovery.
Copilot applyTo tester FAQ
Can applyTo contain more than one pattern?
Yes. GitHub documents comma-separated values such as **/*.ts,**/*.tsx. This tester reports the patterns that match each sample path. Commas inside a flat brace group are treated as alternatives within that group.
Does a match prove Copilot used the instruction?
No. This checks a documented pattern model. Actual discovery and use depend on the client, agent, settings, file location, metadata and request. Check the client's instruction diagnostics or references.
Does this test every Copilot client's glob implementation?
No. It supports the syntax listed above, with an explicit case setting. Unsupported syntax produces no match verdict. Verify matching and instruction loading in your target client.
Can I paste a full instruction file?
Paste its applyTo value or a single applyTo line. This tool does not parse full YAML, arrays, block scalars or other frontmatter fields.