Skip to content
BENIBIX Learn

respectGitignore

AI⌨️ Claude CodeConfiguration

Also known as respectGitignore setting

The key that hides git-ignored files from the @ picker.

Think of it like

It is like a list of drawers your friend should not open. The picker skips them.

Example

Jack needs Claude to read a log file that git ignores. He sets respectGitignore to false, and the file shows up after @.

Why it matters

Ignored files are often noise, but now and then the one you need is among them.

Definition

respectGitignore is a settings key that decides if the @ file picker skips the files your .gitignore lists. The default is true, so ignored files such as build output do not show. Set it to false to see them too. In /config it is called Respect .gitignore in file picker.

Example code

json
{
  "respectGitignore": false
}
Show ignored files in the @ picker too.

Common mistake

Thinking it stops Claude from reading those files. It only changes the @ picker list.

Key takeaways

  1. 1
    Hides ignored files. From @.
  2. 2
    On by default. true.
  3. 3
    Picker only. Not reading.