Is there a way to make Visual Studio only offer relevant names?

Viewed 62

Currently when I press Ctrl+Space while having the cursor in the function parentheses Visual Studio Intellisense offers me everything it can possibly think of. Is there a way to restrict these names to names that make sense for that specific function / parameters / context?

I can click on the little button "Variables and Constants" which helps somewhat but I have to click on that every time this list is invoked.

(If I remember correctly Eclipse first offered only the relevant names/variables for the current context, then pressing Ctrl+Space again offered a wider range of names.)

enter image description here

1 Answers

VS has the feature to give priority to variables, parameters, methods(mixed types) according to your current block domain rather than simply provide a single type.

enter image description here

So I think there is some problems with your environment, please try these:

1) disable any third party extensions under Extensions-->Manage Extensions-->Installed to check if there is an extension causing that.

2) reset vs settings under Tools-->Import and Export Settings-->Reset all settings

3) close VS, delete C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\16.0_xxx\ComponentModelCache folder

Also, delete .vs hidden folder under your solution folder, bin and obj folder.

restart VS to test again.

4) repair vs or update it if there is a new release version.

Related