Enter Key in editor goes to correct indented position, then moves. #1855
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
...
if (avail) {
pushing return after the { move the cursor to indent just after the if which looks acceptable to me. It then after 1/4 of a second moves to the beginning of the line. (very weird).
It seems to happen if there are spaces after the {, and instead of removing trailing spaces and then moving the cursor, it's moving the cursor and then removing the spaces, including the ones before the cursor.
To reproduce
Type the following code
if (this)
if (that) {<space)
reposition the cursor to after the { and push enter.
Expected behavior
remove trailing spaces,add a newline and indent properly.
Arduino IDE version
2.03
Operating system
Linux
Operating system version
Mint 23
Additional context
I've found the editor to be frustrating to use.
Issue checklist
The text was updated successfully, but these errors were encountered: