19

In Visual Studio is there a "Search Everywhere" shortcut (like Resharpers "Search Everywhere")?

I'd prefer to not install Resharper for this, but how can a search everywhere be done in Visual Studio?

ΩmegaMan
  • 29,542
  • 12
  • 100
  • 122
Kellen Stuart
  • 7,775
  • 7
  • 59
  • 82
  • 1
    Just posting back here a year later. I've found Rider to be much better than VS if you can get your hands on a license. You'll still need VS to do certain things, so a license to both is preferable. – Kellen Stuart Nov 03 '20 at 01:14

1 Answers1

15

I use the Navigate To (Edit-GotoAll in VS) command which is CTRL - , (comma) or CTRL - T which can search for types/files and other info based on the name.

See Visual Studio Tip #3: Use “Navigate To”


Otherwise a more limited and historical way of searching all is CTRL-F which is find all that they based Navigate To on.


Navigate To hidden feature

The best kept secret is to search using casing. It is done by typing in just the capitals of the class you search. Example typing "RFC" would then find the constructor of the class which had that pascal casing of RolandsFirstClass(); quite handy.

Key Mappings Do Not Work for Navigate To

Note if you are here about the "Navigate To" feature (actually Edit.GotoAll) and CTRL, (Comma) or CTRLT is not working, I have a visual answer to set/fix the keystrokes here:

Fix Navigate To Missing KeyMappings

Filtering Out files for Navigate To/Edit Goto All

Visual Studio (Go to All) - How to ignore bin and obj folders

ΩmegaMan
  • 29,542
  • 12
  • 100
  • 122
  • I don't know why, but `Ctrl` + `,` does nothing in my vanilla install. Do I have to map it? (I even disabled VIM and it was still doing nothing) – Kellen Stuart May 22 '19 at 16:45
  • I remember having to map it too..now that one's settings travel to versions, I only did it once. But CTRL comma makes sense because (for me) its close to ctrl space operation. – ΩmegaMan May 22 '19 at 16:51
  • 1
    Oh shoot, I wonder if having Resharper install in 2017 caused my `.editorconfig` to be overwritten. Let me try to reset keymap to default and see if that works – Kellen Stuart May 22 '19 at 16:52
  • Good luck...we are all counting on you. ;-) – ΩmegaMan May 22 '19 at 16:53
  • Yep, resetting the defaults worked. `Ctrl` + `,` works. – Kellen Stuart May 22 '19 at 16:54
  • 1
    Glad to help a fellow Coloradoan. I'm in HR south of Denver. – ΩmegaMan May 22 '19 at 16:55
  • 3
    Not sure if it's just me, but on my VS2019 instance the command is called Goto All and no keys were mapped for it. Tools > Optgions > Keyboard > Show commands containing 'GotoAll' and then assign your favoured shortcut (ALT+T for me coming from R#). Also that search for the capitals thing mentioned in the answer is a brilliant idea, didn't know it existed! – Steve Pettifer Feb 10 '20 at 12:09
  • Unfortunately using this way, it's impossible to search text. Like something you want to find in a .json file for example. This method only searches code. Resharper searches everywhere. – Ozkan Apr 21 '23 at 09:29