转到对具体类型定义 [英] Go to definition on concrete type

查看:122
本文介绍了转到对具体类型定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有为Visual Studio的扩展,它允许做去定义一个方法,并将它直接定位到具体实施,而不是界面?我的大多数code为inteface基础和正确的,如果我去定义它直接到这是有道理的,是不错的进入混凝土implementation..Thankx接口

Is there an extension for visual studio that would allow to do Go to Definition from a method and have it navigate straight to the concrete implementation instead of interface? Most of my code is inteface based and right if i do Go to definition it goes straight to the interface which makes sense, be nice to have Go to Concrete implementation..Thankx

推荐答案

如果您使用 ReSharper的 它提供去执行,如果有不同的实现,你可以在不同的执行情况进行选择。

If you using resharper it offers go to implementation and if there are different implementations you can choose among different implementation.

另外,在Visual Studio中您可以使用查找所有引用,法图标是不同的呼叫,也可以按F8浏览他们。

Also in the visual studio you can use find all references, method icon is different from calls, Also you can navigate on them by F8.

和在Visual Studio 2010或更高版本,你可以用Ctrl+,写在出现在这个动作,然后显示候选人中进行选择,在这种情况下,你可以写缩写窗口的名称。 ......

And in the visual studio 2010 or later you can use "ctrl"+"," and write the name in the window that appears in this action, then select among shown candidates, in this case you allowed to write abbreviations, ....

这篇关于转到对具体类型定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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