简体   繁体   中英

Can Visual Studio 2019 be configured to treat old style and new SDK style projects the same in the Solution Explorer?

When you double click or press Enter on an old style project, it expands or collapses. On the new "SDK" style ones, it opens the project file itself. The inconsistency is inconvenient and distracting. I would prefer that the original behavior applied to both types. None of this appears to be a property configurable keyboard shortcut. It is notable that Project.EditProjectFile is available, but not helpful in making this consistent.

Thanks to BooDeeHoo on reddit, I got an answer:

The setting you are looking for is Tools>Options>Projects and Solutions >Open project files with double-click or the Enter key when supported.

Uncheck it to get the legacy behavior on .Net core projects.

Reddit answer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM