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

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


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.


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