简体   繁体   English

是否可以将 Visual Studio 2019 配置为在解决方案资源管理器中处理旧样式和新 SDK 样式项目?

[英]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 核心项目的遗留行为。

Reddit answer Reddit 回答

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio Community 2019 中的解决方案资源管理器如何刷新? - How can the Solution Explorer in Visual Studio Community 2019 be refreshed? Visual Studio 解决方案资源管理器未在解决方案中显示项目 - Visual Studio Solution Explorer not showing projects in solution Visual Studio 2019 解决方案中的最大项目数量 - Maximum amount of projects in visual studio 2019 solution Visual Studio 2019 中的解决方案显示 0 个项目 - Solution in Visual Studio 2019 shows 0 projects Visual Studio解决方案资源管理器随机扩展项目 - Visual Studio Solution Explorer Randomly Expanding Projects 在 Visual Studio 2019 解决方案资源管理器中筛选以显示被 Git 忽略的文件 - Filter To Show Files Ignored By Git In Visual Studio 2019 Solution Explorer Visual Studio 2019-使用PowerShell打开文件而不是解决方案资源管理器 - Visual Studio 2019 - Use PowerShell to open files instead of Solution Explorer Visual Studio 2019 - 在解决方案资源管理器中查找不在源代码管理中的项目 - Visual Studio 2019 - Find items not in source control in Solution Explorer 将我的 Visual Studio 扩展从旧的 csproj 移动到 SDK 样式的 csproj 后出现 NuGet 问题 - NuGet problems after moving my Visual Studio extension from old csproj to SDK-style csproj Visual Studio 2017,在创建新项目时默认使用新样式csproj - Visual Studio 2017, use new style csproj by default when creating new projects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM