[英]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.在旧样式项目上双击或按 Enter 键时,它会展开或折叠。 On the new "SDK" style ones, it opens the project file itself.在新的“SDK”样式上,它会打开项目文件本身。 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.值得注意的是 Project.EditProjectFile 可用,但无助于使其保持一致。
Thanks to BooDeeHoo on reddit, I got an answer:感谢 reddit 上的 BooDeeHoo,我得到了答案:
The setting you are looking for is Tools>Options>Projects and Solutions >Open project files with double-click or the Enter key when supported.您要查找的设置是工具>选项>项目和解决方案>双击打开项目文件或在支持时按 Enter 键。
Uncheck it to get the legacy behavior on .Net core projects.取消选中它以获取 .Net 核心项目的遗留行为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.