IntelliJ moving my mouse cursor in random positions

Solution 1:

you can disable "automatic moves" by Settings > Appearance & Behavior > Appearance, checkbox Automatically position cursor on default button. Docs


Edit (2021-02-15): Something changed in the UI in recent versions. If you're having trouble finding the option you can edit the registry.

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.

You can open the registry by searching all Actions for Registry, then edit that value.

Solution 2:

Press Ctrl+Alt+Shift+/ and select "Registry" from the menu that appears.

Then set ide.settings.move.mouse.on.default.button value to disable.

Registry dialog image

Solution 3:

From the official Intellij documentation: https://www.jetbrains.com/idea/help/appearance.html#d1207234e126

enter image description here

To disable this quickly in Intellij 15 and newer (which have the 'Search Everywhere' feature), do the following:

  1. Press Shift+Shift
  2. Type UI: auto. This should popup the following: enter image description here
  3. Highlight that option and press enter.