AI / INSTRUCTION FILES

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.

Test your applyTo value

Paste a glob value or a single applyTo: line. Paths start at the repository or workspace root, not the instructions folder.

Example: **/*.ts,**/*.tsx. Quoted string values are accepted. Full YAML, block values and YAML arrays are not parsed.

Up to 200 paths, 512 characters per path. Windows sample separators are normalized. Absolute paths and parent traversal are rejected.

Use the behavior of the target workspace. Remote workspaces can differ from your local machine. This choice does not detect your Copilot client.

Checks the standard repository location and file suffix only.

Ready to check

Pattern match results

DOCUMENTED GLOB MODELReady

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.

    MATCHING RULES

    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.

    Supported pattern examples
    PatternMatches
    ** or **/*Files at any depth, including root files
    src/*.tssrc/app.ts, but not src/ui/app.ts
    **/*.ts,**/*.tsxEither extension at any depth
    **/*.{ts,tsx}Flat brace alternatives in this VS Code glob model
    tests/test?.[jt]sOne-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.

    QUESTIONS

    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.