Edit 1 line and another line gets edited as well (copy - pasted text)
-
Hi guys,
When I copy a line of text (from line #1) to a new line (to line #2) and then add more text to the copied line (line #2), notepad++ is adding the same text to the original line (line #1) which I copied from.
This started happening a month ago, and still keeps happening from time to time. (It does not happen every time, but frequent enough to drive me insane)
Is there a solution for this? I’ve reinstalled Notepad++ but that did not fix it.
Notepad++ V8.6.2 64 bit
Thanks
-
@Dhanushka-Jayaweera
This sounds like it could be plugin-related. If you haven’t done so already, try disabling and re-enabling your plugins one at a time, and see if disabling one or more plugins solves your problem. -
@Dhanushka-Jayaweera ,
It could be that you accidentally activate multi-cursor feature of Notepad++ and when you type the added text appears at all cursors locations.
For example if you click on some text position (line1) and then hold
CTRL
key and click on another position (line2) you will notice that there are now two active carets (at both positions you clicked) and if you start typing you will get the result you described. AFAIK this is a feature in the most recent versions of Notepad++.I suspect that when you select your text you use
CTRL
+C
to copy your text and then you unconsciously continue holdingCTRL
pressed while clicking on the paste location which leads to the addition of the second caret at the paste position. At that moment everything you do affects the text at both caret positions.Make sure to release the
CTRL
key before clicking on the paste position to avoid creating the second caret. -
See https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14561
I would install the latest Notepad++ release directly from GitHub, go to
Settings
>Preferences
>Editing 2
and clear the checkbox labelledEnable Multi-Editing (Ctrl+Mouse click/selection)
. -
@rdipardo Multiedit thing is always active since 8.6 from what I saw and cannot be deactivated. I’m gonna revert to 8.5.8 until they provide a option to deactivate it.
-
@pnedev said in Edit 1 line and another line gets edited as well (copy - pasted text):
Make sure to release the CTRL key before clicking on the paste position to avoid creating the second caret.
This is probably it, but it’s still pretty annoying IMO (I understand this is user error, but still)
I would revert to 8.5.8 where it has an option to deactivate it. Thanks
-
@A-Former-User said in Edit 1 line and another line gets edited as well (copy - pasted text):
I’m gonna revert to 8.5.8 until they provide a option to deactivate it.
Already exists. Notepad++ v8.6.3 and v8.6.4 have Settings > Preferences > Editing 2 > ☑ Enable Multi-Editing, as mentioned in the v8.6.3 and v8.6.4 announcements and already updated in the User Manual.