Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Navigate To (CTRL + comma) in Visual Studio does not work

The "Navigate To" function (CTRL + comma) does not work on my solution. It gets stuck on "Found 0 matching results" while the little progress bar stays there but is empty.

I searched for some kind of IntelliSense cache file next to the .sln, but all I found was a .suo file which I deleted but it did not help.

Why is it not working?

like image 497
Jan Zich Avatar asked Oct 06 '10 16:10

Jan Zich


People also ask

How do I enable keyboard shortcuts in Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.

How do I navigate in Visual Studio?

To navigate directly to a procedure or other member of a class, choose it in the right drop-down. To shift focus from the code window to the navigation bar, press the shortcut key combination Ctrl+F2. To shift focus from box to box on the navigation bar, press the Tab key.

How do I enable Ctrl D in VS Code?

The main step are: File > Preferences > Keyboard Shortcuts. type "copy line",then you will see the related shortcuts. remember the new shortcut(e.g. Shift + Alt + Down) or modify the shortcut to ctrl + D.


2 Answers

I had the same problem. I went to Tools > Options... > Environment > Keyboard and clicked Reset. Yes, it will reset any customizations you had, but I figured that was the problem for me (I had an add-in take over Ctrl-, and even when I disabled the add-in it wasn't working). Resetting the keyboard shortcut customizations did the trick.

like image 186
Abigail Avatar answered Sep 20 '22 08:09

Abigail


The command is not "Navigate-To" but actually Edit-GotoAll and it has the keyboard shortcuts of Ctrl-T and the more known one of Ctrl-, (comma).

Reference Default keyboard shortcuts in Visual Studio


💡 Solution 💡

Here are the steps to resolve

  1. Verify it is working by trying the opposite keyboard shortcut. If both shortcuts do not work type in "Edit Goto All" in the command search/execute box of Visual Studio.

View of the operations search dialog

  • Does the command work? If it does not work then do a reset via Visual Studio Options:

View of the options dialog

  1. Then verify or add the keyboard command to the command in the mapping after the reset.
  • Type in "Edit.Goto" in the Window commands containing
  • Then selected Edit.Goto.All:

enter image description here

If you do not see the mapping (#3)

  1. Add the keystroke in the box where bubble 4 is above and click Assign.
  2. Set OK as shown on bubble step 5.
like image 43
ΩmegaMan Avatar answered Sep 20 '22 08:09

ΩmegaMan