Odd behavior when insert line

I'm using IDE 2.0.4 on Win 11 with the Teensy 4.1 microprocessor. I have a default statement at the end of a switch block:

default:
   break;

I place the cursor at the end of the default expression and press Enter to open an empty line between the two keywords. The line opens up and the cursor positions itself so it aligns with the default keyword. Within a few seconds, it automatically repositions itself to the extreme left edge of the Source Window. I must then manually insert tabs to get it to the proper indent with the break keyword.

Is this the intended behavior? If so, I would prefer it follow the auto-formatting pattern and position the cursor directly below default, inset one tab space so it's aligned with break, ready for me to enter a new expression.

It's a known issue. Workaround : IDE 2 unwanted cursor movement - #2 by ptillisch

I don't know if it was solved in 2.0.4 (and if you are on 2.0.4), you can check the release notes.

it is also an issue in version 2.0.3 and i don't think they ficed it in this latest version which is version 2.0.4. You may try to create a post in their support page so they can notice this issue. I am currently experiencing this issue up until now check.

Also you may check this solution. IDE 2 unwanted cursor movement - #2 by ptillisch

That is correct. If you have a GitHub account, you can subscribe to the formal bug report here:

That issue will be closed when the bug is fixed.

Thanks, but there is no need. We are already using the formal bug report I linked above to track the issue.

1 Like

All:
I did what the ptillisch link suggested and my problem is solved. Thanks! Your efforts are sincerely appreciated.

1 Like

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