0

I usually use pycharm/idea for python and java etc and I often whack F4 to get to the declaration of a class or method. Intellij calls this "go to source" in the keymap editor.

I just recently installed Rider to do some c# work and immediately found F4 to not work. The key is still bound correctly but I end up having to use Ctrl+B to accomplish the same thing which I thought was super weird and annoying. Ctrl+B accomplishes the same thing in Pycharm and IDEA from what I can tell.

Does anyone know why F4 doesn't work in Rider for c# and how I might go about correcting this? Preferably without having to rebind keys.

TheChubbyPanda
  • 1,721
  • 2
  • 16
  • 37

1 Answers1

0

Both CTRL+B and F4 works on Rider. But they're available in different contexts. And you need to use both to move around the code.

CTRL+B works when the cursor is on a symbol in the code (i.e. inside the editor). F4 works when viewing quick documentation, in Debugger pane, i.e. outside the editor.

abdusco
  • 9,700
  • 2
  • 27
  • 44
  • 1
    It does work with CTRL+Left Mouse or with Middle Mouse too. – Michael Mairegger Sep 20 '21 at 10:47
  • Why does F4 work in Pycharm in the same context you described for CTRL+B but not in Rider? – TheChubbyPanda Sep 20 '21 at 10:49
  • @TheChubbyPanda F4 doesn't take me to source like Ctrl+B in Pycharm. It works the same way as Rider. Are you sure you don't have a custom shortcut defined in Pycharm? Or using a different keymap? – abdusco Sep 20 '21 at 11:26
  • I'm using the default Windows bindings in pycharm, If my caret is in a method call, F4 takes me to the definition. CTRL+B takes me to the same place. I'm using the "Intellij" keymap in rider – TheChubbyPanda Sep 20 '21 at 11:48
  • >You say F4 doesn't work, but it does work - Answer Accepted – Denis Jun 21 '22 at 12:06