<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to disable duplicate line?]]></title><description><![CDATA[<p dir="auto">Occasionally there is an error in my code because somehow I’m duplicating a line without realizing it. I’ve gone looking through the <strong>Settings</strong> menu 🡺 <strong>Shortcut Mapper…</strong> and used the filter to look for the word duplicate and found nothing. I’ve also searched here on the forums, Duck Duck Go and Google and they all give me non-related results. I have version 8.7.5 installed.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26573/how-to-disable-duplicate-line</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 18:07:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26573.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Jan 2025 18:42:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to disable duplicate line? on Thu, 06 Feb 2025 03:16:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> So I’m explicitly pressing Control+D and it’s no longer duplicating lines. This tab got buried though in the time since I do not recall having to remove a duplicated line. So the earlier mentioned directions seem to have worked. Thanks!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Thanks Guy, that worked!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99650</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99650</guid><dc:creator><![CDATA[jabcreations]]></dc:creator><pubDate>Thu, 06 Feb 2025 03:16:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Thu, 06 Feb 2025 03:13:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">Notepad++ v8.7.5   (64-bit)<br />
Build time : Dec 21 2024 - 05:13:03<br />
Path : C:\MEDIA\OFFICE\Notepad++\notepad++.exe<br />
Command Line : “D:\My Documents\Desktop\Tasks\Hack Attack Stuff\Attack Log.txt”<br />
Admin mode : ON<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
Periodic Backup : ON<br />
Placeholders : OFF<br />
DirectWrite : OFF<br />
Multi-instance Mode : monoInst<br />
File Status Auto-Detection : cdEnabledNew (for current file/tab only)<br />
Dark Mode : OFF<br />
OS Name : Windows 10 Pro (64-bit)<br />
OS Version : 22H2<br />
OS Build : 19045.3930<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
DSpellCheck (1.5)<br />
mimeTools (3.1)<br />
NppConverter (4.6)<br />
NppExport (0.4)<br />
_CustomizeToolbar (5.3)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99649</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99649</guid><dc:creator><![CDATA[jabcreations]]></dc:creator><pubDate>Thu, 06 Feb 2025 03:13:28 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Sat, 25 Jan 2025 22:05:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jabcreations" aria-label="Profile: jabcreations">@<bdi>jabcreations</bdi></a> Besides the debug info that <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> asked for I’m wondering about a couple of things:</p>
<p dir="auto">By “disable duplicate line?” are you asking how to disable or remove the keyboard shortcut for duplicating lines or are you asking about how to make <code>Edit / Line Operations / Duplicate Current Line</code> disappear from the menu structure?</p>
<p dir="auto">I assume that since it’s happening accidentally that you are asking about finding and getting rid of the keyboard shortcut.</p>
<p dir="auto">What happens when you do <code>Ctrl+D</code> which is the default keyboard sequence mapped to duplicate line?</p>
<ul>
<li>
<p dir="auto">Specifically, open any file in Notepad++.</p>
</li>
<li>
<p dir="auto">Make sure the icon in the left side of the tab for the current file is normal and not the red that happens when there are unsaved changes.</p>
</li>
<li>
<p dir="auto">Do <code>Ctrl+D</code></p>
</li>
<li>
<p dir="auto">If the icon did not change to red then we know that <code>Ctrl+D</code> is mapped to do something that does not make changes to the file and that we still don’t know why you are seeing duplicated lines at times. Don’t bother with the steps below but instead, let us know that <code>Ctrl+D</code> seemed to do nothing at all.</p>
</li>
<li>
<p dir="auto">If the tab icon changed red then it’s a clue that <code>Ctrl+D</code> made some change to the file and we now need to figure out what happened.</p>
</li>
<li>
<p dir="auto">Did <code>Ctrl+D</code> duplicate the current line or did it seem to do nothing? If you are working with a 100% blank file it may be hard to detect line duplication and so I’d type some stuff and then do a <code>Ctrl+D</code>  again to see if the stuff is duplicated.</p>
</li>
<li>
<p dir="auto">Did <code>Ctrl+D</code> turn the icon red but seemed to do nothing even though you did <code>Ctrl+D</code> on a line with stuff on it? I would enable <code>View / Show Symbol / Show Control Characters &amp; Unicode EOL</code>. If that was turned off then you are probably now looking at the letters <code>EOT</code> in white with a black background. That means the <code>Ctrl+D</code> is not mapped to anything and that you are adding an <code>EOT</code> character to the file each time you type <code>Ctrl+D</code>.</p>
</li>
</ul>
<p dir="auto">None of this will tell us exactly why lines are getting duplicated but will hopefully point the way to discovering why.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99341</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99341</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sat, 25 Jan 2025 22:05:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Sat, 25 Jan 2025 01:11:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jabcreations" aria-label="Profile: jabcreations">@<bdi>jabcreations</bdi></a></p>
<p dir="auto">Can you post your <em>Debug Info</em> here?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99324</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99324</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 25 Jan 2025 01:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Fri, 24 Jan 2025 21:20:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/jabcreations" aria-label="Profile: jabcreations">@<bdi>jabcreations</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: mark-olson">@<bdi>mark-olson</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> and <strong>All</strong>,</p>
<ul>
<li>
<p dir="auto">You must first run <strong><code>Settings &gt; Shortcut Mapper... &gt;</code></strong></p>
</li>
<li>
<p dir="auto">Then, select the <strong><code>Scintilla Command</code></strong> tab</p>
</li>
<li>
<p dir="auto">And, finally, filter, for example, by the word <strong><code>selection</code></strong></p>
</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1737753580633-a1ec021d-6143-4949-b2a1-022f38ce649c-image.png" alt="a1ec021d-6143-4949-b2a1-022f38ce649c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99320</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99320</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 24 Jan 2025 21:20:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Fri, 24 Jan 2025 21:06:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a></p>
<p dir="auto">I searched each tab one-at-a-time originally as you suggested in reply.</p>
<p dir="auto">The SCI_SELECTIONDUPLICATE setting does exist and none of the keyboard options are set/checked however it clearly was still happening.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99318</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99318</guid><dc:creator><![CDATA[jabcreations]]></dc:creator><pubDate>Fri, 24 Jan 2025 21:06:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Fri, 24 Jan 2025 21:04:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> No.</p>
<p dir="auto">The very title of this thread is <em><strong>how to disable duplicate lines</strong></em> not remove duplicate lines. <em>I was exceptionally clear</em> about disabling the keyboard shortcut.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99317</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99317</guid><dc:creator><![CDATA[jabcreations]]></dc:creator><pubDate>Fri, 24 Jan 2025 21:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Fri, 24 Jan 2025 19:35:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jabcreations" aria-label="Profile: jabcreations">@<bdi>jabcreations</bdi></a> Do you mean the <code>Ctrl+D</code> keyboard shortcut which normally maps to Edit / Line Operations / Duplicate Current Line?</p>
<p dir="auto">It’s in the shortcut mapper in the Scintilla commands tab and is SCI_SELECTIONDUPLICATE</p>
<p dir="auto">When filtering is used in the shortcut mapper it only shows you matches in the current tab. If you were seeking something such as the the word <code>duplicate</code> then you need to flip though the tabs, one at a time, within the shortcut mapper.</p>
<p dir="auto">Apparently, because it’s a Scintilla shortcut, the <code>Ctrl-D</code> shortcut does not show as a hint when you look at Edit / Line operations in the menus.  It also does not show up in the shortcut mapper when you look in the main menu section. That seems like a bug to me but hopefully someone else will chime in with an explanation of the logic behind that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99313</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99313</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Fri, 24 Jan 2025 19:35:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to disable duplicate line? on Fri, 24 Jan 2025 19:03:25 GMT]]></title><description><![CDATA[<p dir="auto">From the main menu, <code>Edit-&gt;Line Operations-&gt;Remove Consecutive Duplicate Lines</code> and <code>Edit-&gt;Line Operations-&gt;Remove Duplicate Lines</code>. <a href="https://npp-user-manual.org/docs/editing/#edit-menu" rel="nofollow ugc">Documentation here</a>.</p>
<p dir="auto">FWIW, these commands may not do what you want, because they will delete ALL duplicate lines, and you may well have lines that are supposed to be duplicated (for example, close curly braces denoting the end of a code block). If you wanted to <em>find</em> duplicate lines, that is a job for <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">regular expressions</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/99312</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/99312</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Fri, 24 Jan 2025 19:03:25 GMT</pubDate></item></channel></rss>