查找Visual Studio IDE中PartialClass的另一部分? [英] Find another part of PartialClass in Visual Studio IDE?

查看:405
本文介绍了查找Visual Studio IDE中PartialClass的另一部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个部分类在我的应用程序。

Suppose I have a partial class in my application.

让我们说我有这个类在Visual Studio开放的一部分,我想找到的其他部分。我怎样才能做到这一点?是否有一个快捷键,或者我可以用它来快速定位到我班上的其他部分的任何其他方法?

Let's say I have one part of this class open in Visual Studio and I want to find the other parts. How can I do this? Is there a keyboard shortcut or any other method that I can use to quickly navigate to the other parts of my class?

这将是有益的,因为在一个大的应用程序,有是手动搜索部分类变得非常低效这么多的个体*的.cs文件。

This would be useful because in a large application, there are so many individual *.cs files that manually searching for partial classes gets very inefficient.

推荐答案

如果你打开的类名称的上下文菜单,然后单击转到定义(F12),则面板查找符号结果将显示在Visual Studio中的底部(默认情况下)。在这里,你会发现,该类的所有(部分)的定义。

If you open the context menu on the class name and click "Go To Definition (F12)", then the panel "Find Symbol Results" will show at the bottom (by default) of Visual Studio. Here you'll find all (partial) definitions of that class.

这篇关于查找Visual Studio IDE中PartialClass的另一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆