Prior to 2.0, it was possible to add not just files, but references to specific types, functions, classes, etc. to context. This helped narrow down the context target. This no longer appears to be possible in 2.0, which only seems to allow file context. ALL code-level context is unavailable in 2.0 as far as I can tell. I use code-level references all the time.
Many of my files have multiple types defined in them, so just being able to reference the whole file is insufficient to the specificity of my prompt and the necessary context.
Steps to Reproduce
Reference a specific type, function, class, etc. in your prompt…
Context palette no longer shows anything but files.
Expected Behavior
Please restore the prior range of context selections that we had before, files as well as code-level specifics.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Found this thread as I was looking for the same thing.
Previously we could pass as context by name a given function, class etc… (part of code) and not waste whole file of context, when a targeted part is enough.
It is also better for the LLM to be specific.
Right now it’s tedious to manually select/copy/paste every time
I know you have removed some @contexts but this one is different and probably was caught in the crossfire.
In cursor <2 I was able to reference variables from code in the chat when typing with “@” character: “@variableNa…” and it would pick it up. Now it’s not.
Is it not working or is it working some other way now?
Steps to Reproduce
Open Chat
Type “@”
Try to reference variable name
Fail
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
@rohovdmytro It’s not working for everyone at the moment, they, accidentally I believe, removed @code from context when they did the 2.0 cleaning, it’s in the docs but not working in the IDE: @ Symbols | Cursor Docs
In cursor <2, I was able to reference functions/methods and variables from code in the chat when typing with the “@” character: “@fnfn…” and it would pick it up. Now it’s not.
I checked the doc, I can see it is meant to be working without tying the @code (but I think that was the issue), since it was removed, maybe the context from it was also removed, making it difficult to reference the function
Steps to Reproduce
Open Chat
Type “@”
Try to reference the variable name
Fail
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)