469

In VS2012 when you select a file in solution explorer it automatically opens file in a special "preview" tab.

Maybe my computer is not fast enough, but this preview is too slow for my taste.

How do I disable this feature?

14
  • 258
    This is (in my opinion) one of the most fundamentally anti-useful features I've ever seen
    – joshcomley
    Commented Oct 30, 2012 at 10:10
  • 15
    Most of the new features in VS 2012 are ;)
    – THX-1138
    Commented Oct 30, 2012 at 14:19
  • 12
    FYI I'm annoyed by this feature because I click the solution explorer so that I can scroll through the files with the mouse wheel, but the preview then blocks my current tab. Commented Dec 20, 2012 at 3:43
  • 13
    By default when you do Alt + Click it won't open the clicked file in preview mode. It should be other way around. If you need to preview then Alt + click. Don't know why microsoft didn't think from the usability point of view.
    – Esen
    Commented Dec 27, 2012 at 15:24
  • 9
    I have to say that I am incredibly disappointed that MS forced the new ,non MDI behaviour on everyone despite a loud dissenting voice. The preview feature makes the UI something you have to actively fight in order to get your job done. VS is going in the wrong direction.
    – greg
    Commented May 12, 2013 at 15:23

5 Answers 5

620

In Tools > Options > Environment > Tabs and Windows, you can disable it by unckecking "Solution explorer" under Preview tab.

I find it using the "Quick launch" new feature. Simply type "preview", and a link to the setting will be suggested. Great new feature of VS

10
  • 3
    could you elaborate on "Quick find" please. It just jumps through files that contain "preview". Are you talking about [Main Menu->Edit->Find and Replace->Quick Find] dialog, or is there another "Quick find"?
    – THX-1138
    Commented Jun 8, 2012 at 16:35
  • 10
    It's called "Quick Launch" in the RC. It's a text field at the far right of the window title bar.
    – Ben
    Commented Jun 12, 2012 at 15:52
  • 10
    Ctrl+Q will get you to the quick launch
    – BZink
    Commented Oct 2, 2012 at 18:21
  • 7
    Bonus points for pointing out the use of Quick Launch! I am still getting used to it. So many cool features! (Type 'Quick Launch' in it to see other providers! Very cool!)
    – kodybrown
    Commented Jan 23, 2013 at 17:47
  • 4
    Slowly getting VS2012 back to a not-driving-me-crazy state. Thanks!
    – neminem
    Commented Aug 13, 2013 at 21:12
205

You can also toggle file preview within the Solution Explorer tool-window itself:

enter image description here

This may have been added in the July update because I hadn't noticed it before then.

6
  • 18
    I literally breathed a sigh of relief as I was clicking this icon to disable the auto-preview. Thank you.
    – Yuck
    Commented Dec 6, 2012 at 20:22
  • 9
    Can more than one answer be "Accepted?" Yours and @Steve B's are essentially the same, but yours is simpler. He answered it before the July (2012) updated but is still technically correct. Yours is simpler and everyone can use it now.
    – vbullinger
    Commented Jun 26, 2013 at 17:27
  • 5
    how, HOW have I gone this long and never discovered this stupid button?! Commented Jul 26, 2013 at 7:11
  • 1
    This wasn't enough for me as I still got preview windows when I used "Go To Definition" (F12)
    – Ian Hern
    Commented Nov 5, 2013 at 1:09
  • 2
    @Sosh: you probably missed the button because of the no color design of VS 2012 buttons. Hopefully, Microsoft heard us and reintroduced some colors in VS 2013 (they finally heard the 90% of unhappy developers with this design decisions)
    – Steve B
    Commented Nov 26, 2013 at 9:49
12

One of the buttons at the top of the solution explorer toggles whether this is enabled.

10

On Visual Studio 2013 I have done this by this Icon :

enter image description here

9

An even better solution IMO is to completely disable the File Preview feature (not just for Solution Explorer):

  1. Open Tools > Options
  2. Navigate to Environment > Tabs and Windows
  3. Uncheck "Allow new files to be opened in the preview tab"

enter image description here

This also prevents things like Go To Definition (F12) from using preview tabs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.