468

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?

Simon
  • 33,714
  • 21
  • 133
  • 202
THX-1138
  • 21,316
  • 26
  • 96
  • 160
  • 257
    This is (in my opinion) one of the most fundamentally anti-useful features I've ever seen – joshcomley Oct 30 '12 at 10:10
  • 15
    Most of the new features in VS 2012 are ;) – THX-1138 Oct 30 '12 at 14:19
  • 5
    luckily, most if not all of the features can be turned on / off – hanzolo Nov 13 '12 at 19:20
  • 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. – Endy Tjahjono Dec 20 '12 at 03: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 Dec 27 '12 at 15:24
  • 2
    I'm a key user, so I don't click. Simply using my arrow key to navigate around files in the solution explorer causes all sorts of previewing. In a database project (not sure why) it forces focus away from the solution explorer to the previewed file... – dudeNumber4 Jan 04 '13 at 15:01
  • 3
    i think they were trying to mimic a similar feature in xcode which i also find annoying about xcode which is why i use an alternate IDE for IOS development – Chris McGrath Jan 26 '13 at 23:06
  • 2
    @EndyTjahjono FYI you don't need to click on the solution explorer to scroll, you can just hover over it and use your scroll wheel. I always tend to click on it too, out of habit, and agree that this feature is annoying. – MrDustpan Jan 29 '13 at 18:45
  • 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 May 12 '13 at 15:23
  • 2
    This feature sucks. I have an asciimap.txt file that folds/maps all 65536 Unicode characters into their closest equivalent or visually similar ASCII character or character sequences, and Visual Studio freezes for a few seconds while it opens it. But I didn't double click the file, I just selected it. It's ridiculous that it tries to open every file I select. I really hate how it unselects whatever code I'm viewing when I click on a different file just to view its properties. – Triynko Oct 14 '13 at 17:22
  • I think the idea behind this feature is great. Having windows automatically close when you are done with them would save some time. The real issue is that the implementation of when the preview is used doesn't line up with real user usage. – Ian Hern Nov 05 '13 at 01:06
  • @joshcomley; It's funny you say that, it's one of the most useful features I've seen (in my opinion) :-) – Erti-Chris Eelmaa Mar 25 '15 at 11:56
  • 1
    I hated this feature and turned it off, but I just found my first use for it. I was needing to thumb through a bunch of script files to find one that had an example of a specific type of query. IMO this feature should be off by default. Alt+click should allow a preview of the file. Not the other way around. – nycfdtd May 27 '15 at 22:38
  • I wonder if ANYONE actually uses this feature? – niico Apr 10 '17 at 20:09

5 Answers5

618

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

RMalke
  • 4,048
  • 29
  • 42
Steve B
  • 36,818
  • 21
  • 101
  • 174
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.

Dan Nolan
  • 4,733
  • 2
  • 25
  • 27
  • 18
    I literally breathed a sigh of relief as I was clicking this icon to disable the auto-preview. Thank you. – Yuck Dec 06 '12 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 Jun 26 '13 at 17:27
  • 5
    how, HOW have I gone this long and never discovered this stupid button?! – SelAromDotNet Jul 26 '13 at 07:11
  • 1
    This wasn't enough for me as I still got preview windows when I used "Go To Definition" (F12) – Ian Hern Nov 05 '13 at 01: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 Nov 26 '13 at 09:49
  • @Ian Hern, did you find the solution to situations, when F12 opens file in a preview window? – Vita1ij May 13 '15 at 14:02
12

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

Daniel Plaisted
  • 16,674
  • 4
  • 44
  • 56
10

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

enter image description here

a.boussema
  • 1,096
  • 11
  • 19
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.

KyleMit
  • 30,350
  • 66
  • 462
  • 664
Dunc
  • 18,404
  • 6
  • 86
  • 103