Line numbers missing when copying for forum

Using IDE 2 production the line numbers are not being copied into the forum using 'Copy for forum'

That’s good. Nobody wants them in the post - it prevents us from compiling.

2 Likes

What I meant is to display the line numbers the same way the IDE does. If someone is posting code to a forum it is a lot easier to say change line xxx to this. However if they can't do it then so be it.

It has not really been an issue for the past few years I have been around. The code tag component may be could add those but you really don’t want them if you copy the code from the forum

Almost never copy from the forum, I was talking as someone who helps others debug their code. Different forum, different practices I guess.

When helping out, I very often copy the code from the forum, sometimes to just indent it correctly and look more clearly or see compiler’s warning. The compiler is often faster at giving you hints than scanning through the Code visually.

Of course other times the error is obvious and just quoting the infringing part and offering a hint or the solution is not difficult

My point was that you don’t want the IDE to export the line numbers when copying, it could be interesting if the code textbox in the forum was able to add (or not depending at what you paste in there) line numbers.

Totally agree.

Maybe I should change the request to be the addition of column editing. The editor I used to use a few decades ago had that ability. That way the line numbers could be exported but anyone wanting to copy the code would simply drag the selection box over the code only leaving the line numbers behind.

It has it. It works the same as in VS Code:

https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_multi-cursor-selection

Excellent. I only use the arduino IDE so not much help to me.

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