如何在“解决方案资源管理器”中查看活动视图 C# 类?

发布于 2024-08-23 01:58:37 字数 105 浏览 5 评论 0 原文

我有一个解决方案,里面有很多项目。 我构建了解决方案并出现了一些编译错误。 双击错误将打开一个名为 FileA.cs 的类文件。 我不知道如何在“解决方案资源管理器”窗格中查看 FileA.cs。

I have a solution which has many projects inside it.
I build the solution and have some compile errors.
Double clicking an error will open a class file, called FileA.cs.
What I don't know how to do is viewing FileA.cs in the Solution Explorer pane.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

镜花水月 2024-08-30 01:58:37

您有 2 个没有宏的选项,要么始终启用跟踪,要么绑定一个键来切换它:

如果您想始终启用跟踪:启用 在解决方案资源管理器中跟踪活动项目 选项,但请注意,保留此选项会导致一些性能损失。通过工具>到达此位置选项 > 项目和解决方案 > 常规

或者,绑定一个键来打开和关闭此功能(但您必须按两次)。

第三,宏选项,创建这个宏并绑定到一个键,这样你就不必按两次来禁用它:

Sub FindInSolutionExplorer()
 DTE.ExecuteCommand ("View.TrackActivityinSolutionExplorer")
 DTE.ExecuteCommand ("View.TrackActivityinSolutionExplorer")
End Sub

You have 2 options without macros, either always enable tracking, or bind a key to toggle it:

If you want to always enable tracking: Enable the Track Active Item in Solution Explorer option, but note there's some performance penalty is leaving this on. Get to this by Tools > Options > Projects and Solutions > General

Alternatively, bind a key to turn this on and off (but you'll have to hit it twice).

Third, macro option, make this macro and bind to a key so you don't have to hit it twice to disable it:

Sub FindInSolutionExplorer()
 DTE.ExecuteCommand ("View.TrackActivityinSolutionExplorer")
 DTE.ExecuteCommand ("View.TrackActivityinSolutionExplorer")
End Sub
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文