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!!!
-
P PeterJones referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login