Why doesn't ctrl-left click go straight to implementation instead of interface definition?

When I ctrl-left click on a method, VS goes to the interface definition. Then from there  I have to ctrl-shift-alt-B to go to the method implementation. This is cumbersome. Why doesn't it go straight to the implementation?

9 comments
Comment actions Permalink

Hello!

Thank you for contacting us.

By default ReSharper is using Ctrl+Click for navigating to declaration and Ctrl+Alt+Click for navigating to implementation.

This is ReSharper | Options | Environment | Search & Navigation | Rich mouse navigation feature.

Thank you.

3
Comment actions Permalink

Thanks. Can these be changed? For example have Ctrl-Click go to implementation?

0
Comment actions Permalink

Hello!

 

The correspondent behavior cannot be changed, you can just turn on/off Rich mouse navigation.

As alternative I can suggest assigning 'ReSharper_GoToImplementation' command in VS Tools | Options | Environment | Keyboard to any handy shortcut.

Thank you.

0
Comment actions Permalink

I'd agree it would have been better for CTRL+Click to go to the implementation, very rarely would I want to go to an interface declaration. Having said that I didn't even know CTRL+ALT+Click for jumping to the implementation even existed until reading this, so thanks for the heads up!

0
Comment actions Permalink

Yes I am not sure why the shortcut with the fewer keystrokes goes to the option that is less commonly used, specially when there's only a single implementation. I don't see why someone is more interested in going to the interface. I am rarely interested in going to an interface when I am debugging.
Maybe JetBrains can share with us their design decision.

0
Comment actions Permalink

Thank you for the feedback, Bryan and Abdu!

 

There's feature request on configuring Ctrl+Click action - https://youtrack.jetbrains.com/issue/RSRP-78311.

Concerning navigation in debugging mode we have also such request - https://youtrack.jetbrains.com/issue/RSRP-83351.

Please feel free to comment and vote for it.

 

0
Comment actions Permalink

Both requests are from 2008! I hope we don't have to wait for another 10 years..  or Visual Studio vNext will beat you to it!

3
Comment actions Permalink

Still waiting for this, drives me nuts having to Ctrl+Alt Click to go to implementation.

Please just make this configurable, we're all paying monthly subscriptions and feeling like you people are not listening.

1

Please sign in to leave a comment.