IntelliJ 将我的鼠标光标移动到随机位置

IntelliJ moving my mouse cursor in random positions

IntelliJ 有时会将光标移动到默认位置,例如在执行 Find in Path 时移动到 Find 按钮上。

但是最近它正在将我的光标移动到完全随机的位置。我怀疑这是因为我的多显示器设置。

computer/IntelliJ 重启无法解决问题。

我怎样才能完全禁用这个 "automatic move" 东西?

您可以通过 Settings > Appearance & Behavior > Appearance、复选框 Automatically position cursor on default button 禁用“自动移动”。 Docs


编辑 (2021-02-15): 最近版本的 UI 发生了一些变化。如果您找不到该选项,您可以编辑注册表。

Here is the request for missing option: https://youtrack.jetbrains.com/issue/IDEA-99985

The option should be disabled though. Try checking focus.follows.mouse.workarounds in registry.

您可以通过搜索 Registry 的所有操作来打开注册表,然后编辑该值。

来自 Intellij 官方文档:https://www.jetbrains.com/idea/help/appearance.html#d1207234e126

要在 Intellij 15 及更高版本(具有“Search Everywhere”功能)中快速禁用此功能,请执行以下操作:

  1. Shift+Shift
  2. 键入 UI: auto。这应该弹出以下内容:
  3. 突出显示该选项并按回车键。

Ctrl+Alt+Shift+/ 和 select 从出现的菜单中选择“注册表”。

然后将 ide.settings.move.mouse.on.default.button 值设置为禁用。

Registry dialog image