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:
- Open the "Command Palette" via the Ctrl+Shift+P (Command+Shift+P for macOS users) keyboard shortcut.
- Select the "Preferences: Open Settings (UI)" command.
- A "Preferences" tab will now open in the Arduino IDE main panel. In the "Search Settings" field, type
editor.trimAutoWhitespace
- Uncheck the checkbox next to the "
☑
Remove trailing auto inserted whitespace." setting.
- 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