Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you prevent Visual Studio 2012 from automatically closing preview files?

Visual Studio 2012 appears to have a new feature that distinguishes between files that have been explicitly opened for editing and files that have been navigated to (these "preview" files default to the right side of the file tabs on the top of the environment and have a default tab color of purple).

While it is possible to keep a preview file open by clicking on the "Keep Open" button in the tab, I find myself looking for files that I expect to be open, but have been closed by Visual Studio without my direct input.

Is there a setting available that automatically converts preview files to open files (i.e. just skips the preview mode entirely)?

like image 682
mcliedtk Avatar asked Oct 09 '12 08:10

mcliedtk


1 Answers

You can turn off Preview Tab, go to Tools / Options / Environment / Tabs And Windows and uncheck "Allow new files to be opened in preview tab", like in screenshot below :

enter image description here

like image 139
Antonio Bakula Avatar answered Sep 19 '22 14:09

Antonio Bakula