Cursor AI @ Symbol Keywords
Ways to use the @ symbol keywords in the Cursor AI IDE…
You can find references to these in the Cursor AI docs HERE
I know if may seem redundant to write about something in the Docs of a product, but I wanted to provide some visibility and a short writeup on these. I was watching a popular coding podcast on YouTube and one of the members mentioned how they use the @Web keyword and the other members had no clue that this keyword allowed you to search the open web from the IDE. The Docs at the link above have screenshots to accompany the writeups to better explain what each ketword does.
@Files
In your code base or files you can use the @<Files> keyword such as @package.json or @python.py. Since Cursor is aware of the code and files in the folder you opened, it also does autocompletion as you type for the contents of the folder. This will allow you to ask the AI about code or text in your files. For example, you can ask Cursor where a given loop or section is.
@Folders
You can use @Folders keyword to reference an entire folder and provide context to Cursor about the contents of the folder.
@Code
The @Code keyword works in a similar way as the @Files keyword. It allows you to look for specific pieces of code…