Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Visual Studio from opening a file on single click?

In my Visual Studio 2012 Solution Explorer, when I single click a filename it opens it. This was different from Visual Studio 2010 (required a double click). Is there a way to make double-click the 'view file' command?

like image 231
John Livermore Avatar asked Sep 21 '12 16:09

John Livermore


People also ask

Why are my files opening with one click?

Right-click the “Start” button and select “File Explorer“. Select “View” > “Options” > “Change folder and search options“. In the “Click items as follows” section, choose between “Single click to open an item” or “Double-click to open an item“.

How to disable preview in Visual Studio?

Options dialog box: Environment > Preview Features Use this page of the Options dialog box to enable or disable preview features in Visual Studio.


2 Answers

This is called the Preview Tab feature. To change that behavior, go to:

Tools -> Options -> Environment -> Tabs and Windows

Then look for the "Preview Tab" section, and uncheck the options therein:

Options Window > Environment option > Tabs and Windows sub-option > Preview Tab section

like image 99
rubber boots Avatar answered Oct 17 '22 10:10

rubber boots


Option 1: Using icon in Solution Explorer

You can enable or disable the feature in Solution Explorer using the "Preview Selected Items" button.

Enter image description here

The icon is a Tab aligned to the right.

Option 2: Using the Options window

You can enable or disable the feature by going into Tools > Options and then Environment > Tabs and Windows.

enter image description here

like image 21
Vinicius Rocha Avatar answered Oct 17 '22 10:10

Vinicius Rocha