No longer possible to add specific types to context

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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)

Version: 2.0.34
VSCode Version: 1.99.3
Commit: 45fd70f3fe72037444ba35c9e51ce86a1977ac10
Date: 2025-10-29T06:51:29.202Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

3 Likes

Hey, thanks for the report. I can reproduce it. I’ll pass it to the team.

2 Likes

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.

@deanrie please keep us updated, thanks.

3 Likes

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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

  1. Open Chat
  2. Type “@”
  3. Try to reference variable name
  4. Fail

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.43
VSCode Version: 1.99.3
Commit: 8e4da76ad196925accaa169efcae28c45454cce0
Date: 2025-10-30T18:49:27.589Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 25.0.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

@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

I’m glad to hear that as fuzzy searching var names in big codebase in one place and then manually copy-pasting that in chat is not that fun now.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

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

  1. Open Chat

  2. Type “@”

  3. Try to reference the variable name

  4. Fail

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.73 (Universal)
VSCode Version: 1.99.3
Commit: 55b873ebecb5923d3b947d7e67e841d3ac781880
Date: 2025-11-11T06:49:12.965Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0

Does this stop you from using Cursor?

No - Cursor works, but with this issue

1 Like

please please please bring this back

@deanrie did you get any news on that matter? there has been some updates already but it’s still not back yet.

For the record, Google’s Antigravity IDE has it, I honestly think this shouldn’t be overlooked or undervalued.

for last 2 months, I did not updated Cursor because of this,
but last week it forced me to update, just checking,
is there any updates on this ?
or is there any way to enable this ?

I have also been delaying the update from 1.7 to 2.x until now. And now I found out that in 2.x I cannot reference classes, methods or other code parts.

For me, this is a very important feature, because the results of the agent’s work on a more complex project are much better if I explicitly tell it what to consider when making changes. And it uses less context window this way.

We can still write names of methods manually, of course, but we need to look them up in source files first. Previously, if we knew a class name or the beginning of the method, this feature suggested a list of names and we just selected the correct one.

I think it should be noted that, even though we can specify the types manually in the prompt, its not the same thing as attaching specific context to the prompt. When you simply have the name IN the prompt, but not as context, the agent/model have to research the codebase to FIND the relevant code. This is more costly, literally, than being able to attach the context directly.

It is a very big step back from the standpoint of being able to keep the agent operating efficiently, using as few tokens as possible. While also making sure the agent knows EXACTLY what I want it to work on, in very explicit terms. I feel like the whole entire redesign of the prompt editor was basically intended to boost token usage, which is to Cursor (and the model provider’s) benefit, and to the detriment of the user. It wastes tokens, wastes money.

This is the same deal with the destruction of the @DocsDocs feature. W@Docsen @Docs worked, the model and agent were VASTLY more efficient at solving problems and implementing optimal code, and doing so with a fraction of the tokens it takes to solve the same problems without @Docs. Starting to wonder at the pattern here…

Cursor is in a very frustrating state right now. Really starting to wonder WHAT THE HECK is going on.

1 Like