Search code examples
editorvisual-studio-2012preview

How do I turn off preview in Visual Studio 2012 for pdf files?


When I select a file in solution explorer it opens immediately in a preview tab.

PDF Preview in Visual Studio 2012

For many file types this is a useful feature. But when adding PDFs to a website it is not. How do I tune Visual Studio 2012's preview feature so that it does not preview PDF files?

(N.B. Kyralessa shows how to turn the preview feature off in an answer to another question, but I'd like to leave it on generally, and turn it off for PDFs.)


Solution

  • Click on the pdf file while holding ALT key - the file will be selected in solution explorer but it will not be open in preview tab.