Codebase Indexing

Semantic embedding of your entire project that powers @Codebase search, context-aware completions, and automatic context retrieval in Composer. Enabled when you open a project folder. Respects .gitignore.

Syntax

cursor
Enable: Open folder → Allow indexing
Re-index: Settings > Codebase Indexing > Re-index
Excludes: .gitignore patterns, node_modules, build artifacts

Example

cursor
// What indexing enables:
indexingBenefits: {
  atCodebase: "Semantic search across entire project",
  autoContext: "Composer automatically finds relevant files",
  completions: "Tab suggestions aware of cross-file patterns",
  discovery: "Find code you don't know the location of"
}

// Indexing respects .gitignore automatically
// Re-index after major restructuring
// ~1-5 minutes for typical web app