Misunderstood IDE behaviour

(Windows 16, 64 bit)
I want to add a line between two lines of code. I position the cursor at the beginning (extreme left) of the line. I press enter, then up arrow then . brief pause The cursor repositions itself at the beginning of the new blank line. I press tab again and brief pause. Now the cursor is positioned at the beginning of the subsequent line.

Now, if I position the cursor at the beginning (extreme left) of the line. I press enter, then I can type the code I want but then must press home, then tab to get the code positioned where I want it.

(windows 10 64 bit)

Is this intentional? What is the thinking here? What do the almighty IDE designers expect one to do when a line is to be inserted?

OSD

I have no idea what would be different, but I am running windows 10 here.
But I can position on a line start, press enter and then as many tabs as I want, my cursor just moves right two spaces per tab press. This sounds like what you expected to happen, and it does here.
I will watch this and see if someone smarter than I knows the answer.

  • Wes

Hi @OldSurferDude. This bug is being tracked by the Arduino IDE developers 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 " Remove trailing auto inserted whitespace."
  5. Click the X icon on the "Preferences" tab.

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

Thanks for checking, Wes!

Are there options that we have set differently? eg. "editor quick suggestions" Mine is checked

Thanks! that seems to work, although the search was for trimAutoWhitespace not files.trimAutoWhitespace

Thanks again!

OSD

Thanks for pointing out that error! I apologize for any confusion my typo might have caused.

I meant to write editor.trimAutoWhitespace (which is the full ID of the setting), but trimAutoWhitespace alone will work just fine.

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