[英]Scrolling through Netbeans code assistance list without mouse or keyboard arrows
This is basically the same question as this except for Netbeans 8.0.2 (running under jMonkeyEngine SDK 3.1-alpha1) instead of Visual Studio. 这基本上是同样的问题,因为这只是针对NetBeans 8.0.2(下jMonkeyEngine SDK 3.1-α1运行),而不是Visual Studio中。
Honestly, the aforemetnioned link says it better than I can, but basically I'm a vim key binding user, and have the netbeans jVi plugin installed and want to map, for example, alt-j and alt-k to scroll through the code completion list instead of the arrow keys: 坦白地说,上述链接比我说的要好,但是基本上我是vim键绑定用户,并且安装了netbeans jVi插件并想要映射,例如alt-j和alt-k来滚动代码完成列表,而不是箭头键:
I've searched through Tools->Options->Keymap, as well as the the JVi configs at Tools->Options->jViConfig. 我已经搜索了“工具”->“选项”->“键盘映射”,以及“工具”->“选项”->“ jViConfig”中的JVi配置。 I don't see anything at all under jViConfig, so I think the standard NetBeans key bindings are the way to go.
我在jViConfig下什么都看不到,所以我认为标准的NetBeans按键绑定是可行的方法。
I have tried modifying most of the obvious down keys eg insertion point down , scroll down , page down etc, but they all affect the underlying text in the editor, never the completion list. 我尝试修改大多数明显的向下键,例如插入点向下 , 向下滚动,向下 翻页等,但是它们都影响编辑器中的基础文本,而不影响完成列表。
Does anyone know of a way to do this? 有人知道这样做的方法吗?
Or maybe a plugin to provide the functionality? 还是提供功能的插件?
It simply appears that the raw arrow key movements are not mappable by netbeans (?). 看起来原始箭头键的移动是netbeans(?)不可映射的。
Note: this is possible to do in Visual Studio 2015, so I'm hoping it's possible in NetBeans as well. 注:这是可能在Visual Studio 2015年做的,所以我希望这是在NetBeans可能的。
Many Thanks. 非常感谢。
AFAIK, there is no way to do this in NetBeans. AFAIK,在NetBeans中无法做到这一点。 At least there wasn't in 2010, when I filed the NetBeans bug hint completion makes assumptions about associated editor pane bindings .
至少在2010年还没有,当我提交NetBeans错误提示时,完成了有关关联的编辑器窗格绑定的假设 。 I maintain jVi.
我维护jVi。 I filed the bug since I was having trouble with completion bindings for some special keys.
我提交了该错误,因为我在完成某些特殊键的绑定时遇到了麻烦。 In the NB source take a look at
在NB资料中看看
editor.completion/src/org/netbeans/modules/editor/completion/CompletionScrollPane.java
editor.completion / src / org / netbeans / modules / editor / completion / CompletionScrollPane.java
And you'll see a bunch of hardcoded stuff. 您会看到一堆硬编码的东西。
In the jVi source 在jVi源码中
nbvi/nbvi-module/src/org/netbeans/modules/jvi/KeyBindings.java
nbvi / nbvi-module / src / org / netbeans / modules / jvi / KeyBindings.java
method fixupKeypadKeys, you see what jVi does (given the fix for the bug I filed). 方法fixupKeypadKeys,您会看到jVi的功能(针对我提交的错误进行了修复)。 This is part of some arcane code that depends on being friend with some NB editor package.
这是某些奥秘代码的一部分,该代码取决于与某些NB编辑器软件包的友谊。
You could file a bug with NB. 您可以向NB提交错误。 If you provided NB a patch, they might incorporate it.
如果您为NB提供了补丁,他们可能会合并它。 If you file a NB bug, cc me (err at netbeans.org)
如果您提交NB错误,请抄送我(netbeans.org上的错误)
Alternately, you could try adding some code to the jVi file to add your keybindings. 或者,您可以尝试向jVi文件中添加一些代码以添加键绑定。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.