How to limit "Select Line" so it does not include carriage return/linefeed
-
I go to the end of a line and double-click. I get the last word in the line highlighted. I then double-click again, and the whole line is selected, including the carriage return/line feed. How do I get Notepadd++ to just select the line, and stop at the last character, without including the CR/LF?
-
if you want it for copy, don’t select anything but put the caret into the line and press
CTRL+SHIFT+X
-
@Ekopalypse said:
if you want it for copy, don’t select anything but put the caret into the line and press
Doesn’t that require a plugin??
@Brian-F-Stephenson said:
I then double-click again
I think this is actually a triple-click.
just select the line, and stop at the last character, without including the CR/LF?
This was hotly debated a while ago, whether or not a “complete line” definition contains the line-ending (CR/LF in this case). Most people say it does, so that’s why triple clicking a line, or other methods of selecting a line include the line-ending part.
-
Doesn’t that require a plugin??
nope - in default configuration
SCI_LINECOPY : Ctrl+Shift+X
-
Haha, maybe I’m thinking of the Visual Studio Line Copy plugin (I don’t use it), but that one probably gets the “complete line” including the line-ending (I’m firmly in the camp that the line is no good without its ending!)
-
maybe I’m thinking of the Visual Studio Line Copy plugin
:-D could be
Unfortunately both mouse actions, the triple click and the line number margin click do the same. I would prefer having one selecting with and the other without eols
but at the end I rarely use it. -
Oh my lord,
SSOOOOORRRRRRYYYYYYYY
CTRL+SHIFT+X copies WITH EOL, not without.
-
LOL on the EOL. Of course nobody tried it – nobody wants it!
Maybe this thread is of interest: https://notepad-plus-plus.org/community/topic/15859/copy-line-without-line-feed/
-
unfortunately I can only upvote once. You are right!!!
-