IDE 2.0.3 editing issue

Using the Arduino IDE version 2.0.3:
When typing the cursor moves to other locations, actually doing wrong indents. Also copy paste of lines of code changes the indenting to unaligned code. But the first remark is killing the usage of this tool. It is not possible to write code.
Is this a bug?

This problem has been observed by me since the first version of IDE 2. I can add that it almost always jumps to the next line if something is inserted from the buffer (copy-paste). I hope the support will sort out this problem.

Hi @Henk_Wizzard_Beekhof and @dyadyagenya. The Arduino IDE developers are tracking this bug here:

I'll share the workaround for the bug:

  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.
1 Like

Thanks for your feedback. I've updated this setting.

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.