@-Symbol Context References
Context injection system in Cursor Chat. Use @-prefixed symbols to add specific files, folders, code symbols, documentation, or codebase search results as context for AI queries.
Syntax
cursor
@Files [path] — full file contents
@Codebase — semantic search across project
@Code [symbol] — specific function or class
@Docs [doc] — linked documentation
@Web — live web search
@Git — recent git historyExample
cursor
// Example Chat queries using @-symbols:
// Debug across files
"@Files src/lib/auth.ts @Files src/hooks/useAuth.ts
The session is null immediately after signIn(). Trace the data flow."
// Discover patterns
"@Codebase Where is error handling currently implemented?"
// Use framework docs
"@Docs[Next.js] How should I implement streaming in App Router?"