This comment has been minimized.

There have been a few versions of solutions for this problem. The "accepted" solution so far is to disable the serial monitor during uploads, without closing the window. This is implemented by #2742. If you want to help out, you could perhaps test that code and report your findings?

Still, thanks for your contribution! Hopefully more to come?

If you think your PR adds something to #2742, please tell us what. Otherwise, it is probably better to close this PR?

This comment has been minimized.

This introduces two new features:
++ a reset button to the serial monitor. So the board can be reset by a
simple button press
++ the "reset board on serial monitor open" has been removed. I think
that removed "feature" was a great annoyance: imagine the Arduino is
controlling some device. And you forgot to open the monitor. Open it
later, Reset, Not nice.

This comment has been minimized.

Hmm. Sorry for any confusion, but apparently I managed to add another change to this pull request. I intended to create two different pulls, on for each commit, but I failed. And I fear to create more chaos if I remove the second commit now.

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.