<?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 jump to the other end of selection?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">if I select some text then I can extend the selection only one one end (where the insertion mark is). But what if I see that I’d like to extend the selection on its other end? Is it possible to move the cursor to the other end and keep the selection so that it gets extended there when I press e.g. Shift+Arrow?</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27211/how-to-jump-to-the-other-end-of-selection</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 06:21:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27211.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Oct 2025 12:20:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to jump to the other end of selection? on Thu, 23 Oct 2025 14:42:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> ,</p>
<p dir="auto">thank you for the description! A did it and it works like a charm! It is indeed amazing what’s possible with Notepad++! Likewise it’s also amazing what a friendly and helpful community it has!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103641</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103641</guid><dc:creator><![CDATA[fml2]]></dc:creator><pubDate>Thu, 23 Oct 2025 14:42:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to jump to the other end of selection? on Thu, 23 Oct 2025 14:03:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fml2" aria-label="Profile: fml2">@<bdi>fml2</bdi></a> ,</p>
<p dir="auto">If I understand you correctly, you want something like the following:</p>
<ol>
<li>have text like <code>abcdefghijklmnopqrstuvwxyz</code></li>
<li>select <code>nopq</code> (shift and arrow keys, or what have you)</li>
<li>move the caret back to the <code>n</code></li>
<li>select backward (shift and left arrow, for example) so you get <code>jklm</code> <em>also</em> selected in the same single selection</li>
</ol>
<p dir="auto">Fortunately, even though Notepad++ cannot have default keyboard shortcuts on all of them, the underlying Scintilla library that Notepad++ uses for handling text selections and similar editing features has a <em>lot</em> of commands. I didn’t even think this one really existed, but when I searched their docs for <code>swap</code>, I found <a href="https://scintilla.org/ScintillaDoc.html#SCI_SWAPMAINANCHORCARET" rel="nofollow ugc">SCI_SWAPMAINANCHORCARET</a> which does the magic of swapping the anchor (beginning of selection) and caret (end of selection), so you can actually do this.</p>
<p dir="auto">Go to <strong>Settings &gt; Shortcut Mapper</strong>, and go to the <strong>Scintilla commands</strong> tab in that dialog.  In the <strong>Filter:</strong> box, type <code>SWAP</code>, which will show you <code>SCI_SWAPMAINANCHORCARET</code>.  Click on it, <strong>Modify</strong>, and assign a shortcut (for sake of my example, I am using <code>Ctrl+Alt+Shift+Spacebar</code>, which doesn’t conflict with anything else).  Once you <strong>Apply</strong> and <strong>OK</strong> to close the dialogs, that shortcut will perform that action.</p>
<p dir="auto">Click between the <code>m</code> and <code>n</code> in the alphabet.  <code>Shift+RightArrow</code> to select <code>nopq</code>.  Use <code>Ctrl+Alt+Shift+Spacebar</code> , and notice that the selection stays the same, but the caret bar/symbol swaps to being before the <code>n</code> rather than after the <code>q</code>.  <code>Shift+LeftArrow</code> four times to extend the selection to the left, so it’s now got <code>jklmnopq</code>, with the caret before the <code>j</code>.  You can keep on using the new shortcut to swap, and go on extending to either end, to slowly add more and more of the alphabet, if you want.  But if you were to <strong>Copy</strong> at this point, the clipboard would contain the <code>jklmnopq</code> as a single normal selection.</p>
<p dir="auto">It’s amazing how many hidden gems Notepad++ provides, either on its own or through the Scintilla library it uses.  I personally never would have thought this sequence was a need I had, but it’s really cool that it’s available for those who do want it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103640</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103640</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 23 Oct 2025 14:03:24 GMT</pubDate></item></channel></rss>