phuongnd
phuongnd

Reputation: 1289

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 ?

Upvotes: 54

Views: 6863

Answers (4)

Munam Yousuf
Munam Yousuf

Reputation: 547

In Visual Studio 2022 you can do this as follows:

  1. Go to "Tools"
  2. Select "Options"
  3. Select "Project and Solutions"
  4. uncheck "Open project files with double-click or the Enter key when supported"

Screenshot for visual demonstration

Upvotes: 6

Malte
Malte

Reputation: 2067

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

Upvotes: 9

Drew Noakes
Drew Noakes

Reputation: 311325

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.

Upvotes: 79

Sajeetharan
Sajeetharan

Reputation: 222700

Yes with VS2019, it is implemented the same way. There is a suggestion opened here

As of now there is no direct way to disable.You can click on the arrow to expand and see the files and structure

Upvotes: 6

Related Questions