Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 extension for Go To Interface Implementation? [duplicate]

Tags:

Possible Duplicate:
How do you quickly find the implementation(s) of an interface’s method?

I like ReSharper's Go To Implementation feature but I often keep ReSharper disabled. Is there an equivalent extension for Visual Studio 2010?

like image 634
kenwarner Avatar asked Jun 06 '11 04:06

kenwarner


People also ask

How do you open the implementation method in Visual Studio?

Choose Navigate | Go To Implementation in the main menu, press Ctrl+F12 , or click the symbol while holding Ctrl+Alt keys. Note that in Visual Studio 2017 and later, the Ctrl+Alt -click is used for adding multiple carets.

How do you enter method implementation in Visual Studio code?

Go to Implementation# Languages can also support jumping to the implementation of a symbol by pressing Ctrl+F12. For an interface, this shows all the implementors of that interface and for abstract methods, this shows all concrete implementations of that method.


1 Answers

I'm looking for the extension for this little "go to implementation" too. But unfortunately I couldn't find any. May be we will have to wait next version of visual studio or enable ReSharper back (which in my opinion, eating too much resources)

Well the best solution for me right now is to use "Call Hierarchy" feature of VS2010. Just follow my instruction below

  1. Move cursor to the target method name
  2. Press "Ctrl K, Ctrl T" (this will pop up "Call Hierarchy Window")
  3. Press "Down", "Down", "Right", "Down", "Enter" (this will go to your implementation method)
    • Look funny but it is actually the way to use keyboard to navigate to the item you want
  4. [More Explanation]
    • "Down", "Down" --> go to "Implements 'xxx'"
    • "Right" --> expand children
    • "Down" --> focus on the implementation method
    • "Enter" --> navigate to it

Hope this help

like image 169
ensecoz Avatar answered Sep 28 '22 06:09

ensecoz