Skip to content
BENIBIX Learn

fileSuggestion

AI⌨️ Claude CodeConfiguration

Also known as fileSuggestion setting, @ file autocomplete

A command of your own that suggests files when you type @.

Think of it like

It is like your own phone book. You use it, not the one that came with your phone.

Example

Emma's repo has a million files, and the @ picker is slow. She points fileSuggestion at a script that reads a file index.

Why it matters

A slow picker breaks your flow every time you name a file.

Definition

fileSuggestion is a settings key that runs your own command to suggest file paths when you type @. The built-in picker walks through your folders. In a very large repo, a command that reads a ready-made file list can be faster. The key holds an object with type set to command, and the command to run.

Example code

json
{
  "fileSuggestion": {
    "type": "command",
    "command": "~/bin/list-files.sh"
  }
}
Suggest files from your own script.

Common mistake

Setting it and still seeing the built-in list. Some company rules skip your command without a warning.

Key takeaways

  1. 1
    Your own picker. For @.
  2. 2
    For huge repos. Faster lists.
  3. 3
    type is command. Always.