Resharper - is it possible to go to method's implementation on CTRL-click instead of going to declaration?

前端 未结 4 2018
既然无缘
既然无缘 2020-12-25 10:06

if I do CTRL-click on method\'s name in VS2012 with Resharper 8, I\'m redirected to the method\'s \"declaration\" - and that\'s quite inconvenient if I have lots of interfac

相关标签:
4条回答
  • 2020-12-25 10:31

    Keyboard only options:

    CTRL+F12 OR ALT+END = Go to implementation

    F12 = Go to declaration

    ALT+F12 = Peek declaration

    0 讨论(0)
  • 2020-12-25 10:35

    I don't think you can re-assign the CTRL+LeftClick Option. Per their documentation.

    By default, Go To Declaration is available by Ctrl + left-click. To change the default behavior, use controls on the Search & Navigation page of the Options dialog box. For more information, see ReSharper Options: Environment: Search & Navigation

    Since it says "change", I went and checked the Search & Navigation section mentioned above to verify if this behavior can indeed be changed. But the change is simply a Checkbox that says.

    Go To Declaration on <Control + Left Click> in editor.
    

    I unchecked this option and saved it, and now, I get nothing if I CTRL+Left Click a method name. So I think you can only disable or enable this option, not re-assign the keys.

    0 讨论(0)
  • 2020-12-25 10:49

    CTRL+Click = Go to declaration

    CTRL+ALT+Click = Go to implementation

    CTRL+SHIFT+Click = Peek to declaration (Visual Studio 2013)

    0 讨论(0)
  • 2020-12-25 10:56

    There are 2 solutions for it:

    1. CTRL + ALT + Left Click - default behaviour
    2. VS: Tools => Option => Environment => keyboard => Search "ReSharper.ReSharper_GotoImplementation" and then assign the key you want.
    0 讨论(0)
提交回复
热议问题