Miguelito
Miguelito

Reputation: 332

Visual Studio. How to temporarily open a file with a single click

If I double click on a file in the Visual Studio Solution Explorer (VS2019), it is opened for editing in a new tab on the far left of the tab area. If I double click on another it too is opened in a new tab on the left. In the past, I have been able to single click on a file and it was shown in a tab that displayed on the far right of the tabs area. If I single clicked on another file, it would replace the text of the first file in the same tab. I could keep doing this and each file was opened temporarily in that same tab. If I edited what was in that tab, it was moved to the left tab area and remained opened even if I single clicked on another file that appeared in a tab on the right. This was super convenient for when I just wanted to look at a file without editing it any. Could you tell me how to do this? I looked through the configuration settings and didn't see anything. It would be super helpful for reviewing some of the hundreds of new files I need to look at in a new project I am taking over.

Upvotes: 4

Views: 1349

Answers (1)

julealgon
julealgon

Reputation: 8182

The setting you are looking for is Preview selected files in Solution Explorer. It can be found in the Environment -> Tabs and Windows -> Preview Tab settings page:

enter image description here

After turning it on, clicking on a file once in the Solution Explorer will "preview the file" (which is the official name of the feature) in a special preview tab.

Upvotes: 6

Related Questions