Annoying auto text formatting issues. Magical text cursor #1364
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
Sorry I know there must be several reports on things like this.
But I got annoyed this morning, after more times where something that appears like should just work correctly
like hit CR to create a new line and have the cursor go to the right place and does not. And then when you try to correct it does something else strange.
To reproduce
Suppose I wanting to add new line



I hit CR and at first the cursor moves to the right place and then jumps to start of line?
So I hit tab to get to the right spot and start typing the next line: I type; if
and again, text cursor jumps to strange place
Sorry images not picking up text cursor but it is now on the next line with the other Text line
So I hit up arrow and then hit the end key and now the cursor is at about:


Red mark is about where it is. I back space 5 or 6 times to get back to after if:
I type in: if ((buttons & 1) != buttons_prev & 1)) {
it fills in the trailing }, I hit the CR
And back to another repeat where the Text cursor goes to the right place and then jumps back to start to repeat this whole process over again.
Edit: I then was then trying to finish the code change in this section, and after the buttons >>=1;

I am adding: buttons_prev <<= 1;
But after I typed: butt, the text changed and the cursor went again to start of next line:
Expected behavior
The text cursor would go where it should.
Arduino IDE version
Nightly 20220827
Operating system
Windows
Operating system version
Windows 11
Additional context
Sorry, I know there are probably several like reports of this, but sometimes hard to search.
Wish there was a simple place to post a questions/observation, and then hopefully someone can triage it...
I have been trying to use the IDE to do a lot of my editing of test sketches, instead of doing the work within sublime Text, which also allows me to edit/view the library code as well as do the builds which when there are errors, I can again see the library code... And then I use TyCommander to do Serial monitor stuff.
The main things that keep me from wanting to use the IDE 2 more are:
a) The problems with the Serial Monitor - clips the bottom, can't easily navigate with keyboard (or mouse), issues with copy content from it.
b) I cannot identify exactly it, but the new daily builds versus RC9.2 feels like it forgets what port it is working with more, especially when I am switching back and forth from building and using TyCommander
c) The annoying magical text cursor and similar strange auto formatting.
Again, my guess is this has been reported before! If so feel free to close...
Issue checklist
The text was updated successfully, but these errors were encountered: