Skip to content

Annoying auto text formatting issues. Magical text cursor #1364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
KurtE opened this issue Aug 28, 2022 · 1 comment
Closed
3 tasks done

Annoying auto text formatting issues. Magical text cursor #1364

KurtE opened this issue Aug 28, 2022 · 1 comment
Assignees
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

Comments

@KurtE
Copy link

KurtE commented Aug 28, 2022

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
image
I hit CR and at first the cursor moves to the right place and then jumps to start of line?
image
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
image
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:
image
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
image
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:
image

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

  • 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
@KurtE KurtE added the type: imperfection Perceived defect in any part of project label Aug 28, 2022
@per1234
Copy link
Contributor

per1234 commented Aug 28, 2022

Hi @KurtE . Thanks for taking the time to submit an issue.

I see we have another report about this at #437.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.


I'll provide instructions for the simple workaround that was discovered by a community member:

  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. In the "Search Settings" field, type editor.trimAutoWhitespace
  4. Uncheck the checkbox next to " Remove trailing auto inserted whitespace."

Wish there was a simple place to post a questions/observation, and then hopefully someone can triage it...

All are welcome to participate in the dedicated category on the Arduino Forum for Arduino IDE 2.x:

https://forum.arduino.cc/c/software/arduino-ide-2-0-beta/93

I try to be pretty active in addressing the posts there, whether that is providing support, linking to relevant GitHub issues/PRs, or escalating verified original bug reports/feature requests to the appropriate GitHub issue tracker.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2022
@per1234 per1234 self-assigned this Aug 28, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants