Skip to content

Cursor randomly jumps to beginning of line #437

Closed
@tomotvos

Description

@tomotvos

Describe the problem

While editing, the cursor sometimes randomly jumps to the beginning of a new line

To reproduce

  1. Edit sketch
  2. Usually when typing a new line, cursor will jump to beginning of next line
  3. Seems to be related to auto-indent with tabs

Expected behavior

The cursor should not jump around and stay where I am typing

Arduino IDE version

2.0.0-beta.7

Operating system

macOS

Operating system version

Big Sur

Additional context

Additional reports

Workaround

  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.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions