github / github/copilot-cli

Support path negation with custom instructions applyTo paths

Open
#1,856 0 comments 2 reactions 0 assignees View on GitHub
area:configuration
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

### Describe the feature or problem you'd like to solve

I want to provide broad instructions that apply to 90% of our monorepo. However they do not apply to a small subset. Rather than having to add every single path they DO apply to (hundreds), I want to be able to specify certain paths they do NOT apply to

### Proposed solution

Support negation pattern like:
```
applyTo: **/*.cpp, !/but/not/this/path/**
```

### Example prompts or workflows

I want to provide broad instructions that apply to 90% of our monorepo. However they do not apply to a small subset. Rather than having to add every single path they DO apply to (hundreds), I want to be able to specify certain paths they do NOT apply to

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.