Add a way to quickly reference the current file

Hello. Maybe I don’t understand properly how cursor works, but I noticed that, unless I add the current file I am as context (via @filename) I get worse results.
Having to type the complete filename (even with autosuggest) is a bit tedious. I wish there was a faster way, like @this or something like that.

4 Likes

I agree with @this.

I’d love a quick way to reference the current file. I don’t like having “Default no context” turned on by default. Hopefully they can add a shortcut to reference the current file .

I just submitted a feature request: Cline AI somehow finds all the required files, so it would be cool to have automatic file reference in Cursor too. It really hallucinates a lot when I forget to reference something relevant

Hey, when you start a new session, the file you are currently looking at is automatically added as context.

Also, in newer version, you can enable ‘Auto-Context’ in the settings, which will grab some files you have recently opened or are relevant to your query automatically!