116

When I want to search files I use Ctrl+,. The search box pops up and then I start typing. But the built-in preview just grabs whatever I have typed and opens the file. Even though I am still typing.

I am trying to open a file called report_vaccine, but I only get as far as report when the preview opens the first selected report. This has rendered this form of quick file searching pretty much useless, which is frustrating because we have hundreds of procs, and scrolling through and manually finding the file is a huge pain.

If there is a way to turn off preview, I would be fine with that. This command working properly is waaay more important to me than a preview of the file to be opened.

I don't have resharper. I think the command was like Ctrl+Shift+t.

Toby Speight
  • 27,591
  • 48
  • 66
  • 103
DeadlyChambers
  • 5,217
  • 4
  • 44
  • 61

3 Answers3

214

From the menu go to Tools -> Options then navigate to Environment -> Tabs and Windows and uncheck the Preview Tab checkboxes.

tspauld
  • 3,512
  • 2
  • 25
  • 22
  • 6
    In particular, the check box that affects the behavior of the Ctrl+comma search box is "Preview selected files in Navigate To" – dcstraw Jan 21 '15 at 18:11
42

I like showing screenshots, helps digest the info just a little faster :)

enter image description here

viggity
  • 15,039
  • 7
  • 88
  • 96
9

This is faster: toggle file preview within the Solution Explorer tool-window:

enter image description here

Korayem
  • 12,108
  • 5
  • 69
  • 56
  • 1
    Although the icon is a bit different now, this (and the other answers maybe) also work if you want to stop VS from closing the search list in the first hit when using Ctrl+[comma] to find a file/class – Felipe Pereira Apr 13 '17 at 13:05
  • This didn't change behavior when F12ing to `Go To Definition` for me; they'd still open in a preview tab until I followed [tspauld's answer](https://stackoverflow.com/a/19914461/1028230). – ruffin Jan 31 '20 at 17:05