34
votes

I noticed in Visual Studio 2013 that when you open a document via 'go to definition/f12' the document is only opened temporarily, as soon as you navigate away from the document it closes again.

Now you have to click on the 'keep open' icon in the tab. How do I 'keep open' all those files automatically like in previous versions of Visual Studio?

3

3 Answers

38
votes

This is an optional feature which gives quick navigation to every file in Visual Studio. If you need to keep a file opened all time, you need to double click it.

Single click will open the file temporarily until you decide to open another file which opens in the same preview window. This feature can be disabled using:

TOOLS → Options → Environment → Tabs and Windows → Preview Tab → Single-click

IMO, this is a handy feature (explained here) just to avoid cluttering up the working space.

28
votes

From Stack Overflow question How to have a file open normally in Resharper instead of in Keep Open mode:

Simply go to: Tools ? Options ? Environment ? Tabs and Windows

Then uncheck the "Allow new files to be opened in the preview tab" in the Preview Tab section

Uncheck all to be able to do F12

It will disable all preview features, but at least you will be able to do F12 as you wish.

14
votes

I was annoyed by this feature as well, until I discovered the shortcut Ctrl+Alt+Home.

If you press that in a document that was just opened, it will be opened permanently.

You can also click on the small button 'Keep Open' here:

enter image description here