Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep document open in Visual Studio 2013

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?

like image 633
Elger Mensonides Avatar asked Dec 11 '13 13:12

Elger Mensonides


3 Answers

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.

like image 81
Nexus23 Avatar answered Sep 25 '22 01:09

Nexus23


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.

like image 22
Olivier de Rivoyre Avatar answered Sep 25 '22 01:09

Olivier de Rivoyre


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

like image 14
cheesus Avatar answered Sep 24 '22 01:09

cheesus