IDE 2 unwanted cursor movement

Hi @CARTERK.

The Arduino IDE developers are tracking this bug here:


I'll provide instructions for the simple workaround that was discovered by an Arduino forum member:

  1. Open the "Command Palette" via the Ctrl+Shift+P (Command+Shift+P for macOS users) keyboard shortcut.
  2. Select the "Preferences: Open Settings (UI)" command.
  3. A "Preferences" tab will now open in the Arduino IDE main panel. In the "Search Settings" field, type editor.trimAutoWhitespace
  4. Uncheck the checkbox next to the " Remove trailing auto inserted whitespace." setting.
  5. Click the X icon on the "Preferences" tab.

Please let me know if you have any questions or problems while following those instructions.

2 Likes