简体   繁体   English

JetBrains Rider“去源头”不起作用

[英]JetBrains Rider "go to source" does not work

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.我通常将 pycharm/idea 用于 python 和 java 等,我经常敲击F4来获得类或方法的声明。 Intellij calls this "go to source" in the keymap editor. Intellij 在键盘映射编辑器中将此称为“转到源代码”。

I just recently installed Rider to do some c# work and immediately found F4 to not work.我最近刚刚安装了 Rider 来做一些 c# 工作,然后立即发现F4不起作用。 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来完成同样的事情,我认为这非常奇怪和烦人。 Ctrl+B accomplishes the same thing in Pycharm and IDEA from what I can tell.据我所知, Ctrl+B在 Pycharm 和 IDEA 中完成了同样的事情。

Does anyone know why F4 doesn't work in Rider for c# and how I might go about correcting this?有谁知道为什么 F4 在 Rider for c# 中不起作用,以及我该如何纠正这个问题? Preferably without having to rebind keys.最好不必重新绑定密钥。

Both CTRL+B and F4 works on Rider. CTRL+BF4都适用于 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 (ie inside the editor).当光标位于代码中的符号上时(即在编辑器中), CTRL+B起作用。 F4 works when viewing quick documentation, in Debugger pane, ie outside the editor. F4在查看快速文档时起作用,在调试器窗格中,即在编辑器之外。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM