With Codebase
Learn how Chat searches codebases using default search, embeddings, and advanced @Codebase queries.
Default Codebase Chat
If a codebase isn’t indexed, Chat will first attempt to compute a few search queries to be used to search across your codebase. For better accuracy, it’s recommended to use embeddings search.
Embeddings Search
With codebase indexing, Chat can accurately generate responses based on your codebase.
By pressing Ctrl/⌘ + Enter
after typing a message, Chat scans through your indexed codebase to find pieces of relevant code. This is generally
good for quickly including code snippets to be taken into the context of the conversation. For more control over the codebase search and better accuracy,
you can use @codebase
.
Advanced Codebase Search
Cursor codebase chat goes through a more detailed search when @Codebase
is used.
See more about @Codebase
here.