Paste text without jumping to cursor
-
I just want to paste a 1000char line (probably HTML or JSON) and move on to the next line without my view getting jolted. (Where I continue the process). Does Notepad++ support that feature?
A related question would be how to put the cursor off screen without scrolling to the cursor.
-
@Thomas-Zito said in Paste text without jumping to cursor:
I just want to paste a 1000char line (probably HTML or JSON) and move on to the next line without my view getting jolted. (Where I continue the process). Does Notepad++ support that feature?
What do you mean by “view getting jolted”?
If you paste 1000 characters that don’t end in a newline sequence, and your screen width only handles 120 characters, then Notepad++ will either scroll to the end of the line (if you don’t have word-wrap enabled), or will just visually wrap it to fit on screen (if you have word-wrap enabled from the View menu or the toolbar toggle).
If you don’t want word-wrap on, but don’t want Notepad++ to scroll to the end of your paste, then you might consider doing the copy before the paste to include the newline sequence, so that way when you paste, Notepad++ puts the caret on the next line already.A related question would be how to put the cursor off screen without scrolling to the cursor.
The typing caret for Notepad++ is always onscreen, unless you move it then intentionally scroll away from the caret. With a scripting plugin, you could automate moving the caret then scrolling in such a way that it probably goes off-screen (it would be a similar concept to my script shown in the “Is there a way to keep a blank “working space” as I’m logging information?” conversation