Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Edit Project when double click on Visual Studio 2019?

On Visual Studio 2019

When I double click or even focus on project, it open Edit project

For previous version, It just only expand the project structure

How to disable this feature ?

like image 754
phuongnd Avatar asked Apr 08 '19 03:04

phuongnd


Video Answer


2 Answers

Visual Studio 2019 (version 16.0) introduced the ability to double click on SDK-style projects in Solution Explorer and having them open in the editor.

Based on feedback, an option has been added in Visual Studio 16.1 (currently in preview) that restores the previous behaviour.

enter image description here

If you prefer the old behaviour, uncheck this setting.

EDITORIAL: SDK-style projects are very readable and easy to edit by hand. If you use SDK projects you may start to think of project files as regular source file and that double clicking to edit makes sense. Of course you may not, but it's worth considering.

like image 162
Drew Noakes Avatar answered Nov 02 '22 04:11

Drew Noakes


Here the answer of @Sajeetharan again with a screenshot for a direct way to the setting that currently can be used as a workaround since the accepted answer is not working.

Of course this disables the preview from selected files in the Solution Explorer completely.

Visual Studio 2019 16.3.1:

enter image description here

like image 38
Reitffunk Avatar answered Nov 02 '22 04:11

Reitffunk