<?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[Change Indent Keyboard Shortcut?]]></title><description><![CDATA[<p dir="auto">Is there a way to customize the indent Hotkey (Keyboard Shortcut)?</p>
<p dir="auto">I’m looking to indent a line, having the caret be located anywhere on that line, like the use of “Ctrl + ]” in Google Docs or Google Keep.</p>
<p dir="auto"><img src="/assets/uploads/files/1594826622352-notepad-_indent.png" alt="Notepad++_Indent.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I know there’s “Tab” and “Shift + Tab”, but they work only on multi-line selection, or when the caret is located at the beginning of a line.</p>
<p dir="auto">Might there be an Option, or a Plugin available to customize the indent function?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19709/change-indent-keyboard-shortcut</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 03:19:01 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19709.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jul 2020 15:24:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Fri, 17 Jul 2020 14:00:24 GMT]]></title><description><![CDATA[<p dir="auto">Here’s a weird condition…maybe:</p>
<p dir="auto">Select one or more empty lines.<br />
Press Tab.<br />
Exactly nothing happens.</p>
<p dir="auto">My goal was to have leading whitespace inserted on all lines at once, for each press of the tab key.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56000</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56000</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 Jul 2020 14:00:24 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 19:59:01 GMT]]></title><description><![CDATA[<p dir="auto">Wow, that’s so awesome. Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55974</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55974</guid><dc:creator><![CDATA[Cr8zy_Ivan]]></dc:creator><pubDate>Thu, 16 Jul 2020 19:59:01 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 19 Jun 2025 18:32:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cr8zy_ivan" aria-label="Profile: Cr8zy_Ivan">@<bdi>Cr8zy_Ivan</bdi></a> said in <a href="/post/55972">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">I’m a novice at Notepad++ and coding and general. I’ve installed the plugin, but then I’m confused as to what to do next. Macro\Modify Shortcut/Delete Macro? Plugins\NppExec\Show Console…? Save the code into a dll file? (I’m not even sure how dll files work)… oh boy</p>
</blockquote>
<p dir="auto">Plugins=&gt;NppExec=&gt;Execute.  In the window, paste one of the “scripts” without the name and save with that name instead:</p>
<p dir="auto"><img src="/assets/uploads/files/1594928580802-e5c7e7f6-1f32-4a4e-a153-601c4cb877a9-image.png" alt="e5c7e7f6-1f32-4a4e-a153-601c4cb877a9-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Do the same for the other saving it as the other name.</p>
<p dir="auto">Then, Plugins=&gt;NppExec=&gt; Advanced Options…</p>
<p dir="auto"><img src="/assets/uploads/files/1594928700421-2c012a93-81aa-408a-9850-2691ecc218db-image.png" alt="2c012a93-81aa-408a-9850-2691ecc218db-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Add a name, select the script name you saved that matches and press the Add/Modify button.  Make sure the “Place to the Macros submenu” at the top is checked.</p>
<p dir="auto">Finally, open Setting=&gt;Shortcut Mapper… and add the “Ctrl + Alt + [” shortcuts:</p>
<p dir="auto"><img src="/assets/uploads/files/1594928881327-1f7c46d6-5891-46b0-8889-b1842e6fab2b-image.png" alt="1f7c46d6-5891-46b0-8889-b1842e6fab2b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55973</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55973</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 19 Jun 2025 18:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 19:38:35 GMT]]></title><description><![CDATA[<p dir="auto">Oh wow, quite the topic I see.</p>
<p dir="auto">I’m trying to get this to work but finding it a bit frustrating.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a>, thank you so much for the plugin and the code!</p>
<p dir="auto">I’m a novice at Notepad++ and coding and general. I’ve installed the plugin, but then I’m confused as to what to do next. Macro\Modify Shortcut/Delete Macro? Plugins\NppExec\Show Console…? Save the code into a dll file? (I’m not even sure how dll files work)… oh boy</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55972</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55972</guid><dc:creator><![CDATA[Cr8zy_Ivan]]></dc:creator><pubDate>Thu, 16 Jul 2020 19:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 17:14:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/55963">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">I wonder if it may be an easy lift for a talented N++ developer to change the current simple menu code to sending SCI_TAB/BACKTAB to actually doing some logic about single / multiline selection and making the menu items “do what they say”.</p>
</blockquote>
<p dir="auto">That’s a good idea, but I quoted some “issue” links above on it, and it doesn’t appear they’ve generated enough interest for any of the talents to work on it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55966</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55966</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 Jul 2020 17:14:29 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 16:06:53 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> said in <a href="/post/55961">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">I’m not much of a NppExec scripter, but I’m curious about what your scripts will do with those circumstances, so I may just try it out!  :-)</p>
</blockquote>
<p dir="auto">My script basically looks at the selection and if it’s single line - it does some magic before calling the Edit=&gt;Indent=&gt;menu options.  If it’s multiline selection, I just call the Edit=&gt;Indent=&gt;menu options.</p>
<p dir="auto">I don’t fully grok the source code at your link, but if all that’s in there, I wonder if it may be an easy lift for a talented N++ developer to change the current simple menu code to sending SCI_TAB/BACKTAB to actually doing some logic about single / multiline selection and making the menu items “do what they say”.</p>
<p dir="auto">Til then, I’m loving my scripts (since I’m actually editing Python right now with the exact troubleshooting use case I described above).  Everything <a href="https://en.wikipedia.org/wiki/Law_of_the_instrument" rel="nofollow ugc">“looks like a nail”</a> now to me I guess …</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55963</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55963</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 16 Jul 2020 16:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 15:33:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a></p>
<p dir="auto">I was browsing the code link in my post just above, and noticed that the Scintilla code handles multi-selections and rectangular selections as well as the more usual single selection.</p>
<p dir="auto">I’m not much of a <em>NppExec</em> scripter, but I’m curious about what your scripts will do with those circumstances, so I may just try it out!  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55961</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55961</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 Jul 2020 15:33:40 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 15:01:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/55957">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">You can find the SCI_TAB and SCI_BACKTAB in Shortcut Mapper</p>
</blockquote>
<p dir="auto">Yes, but if it was that alone we would be talking about “weirdness”. :-)</p>
<blockquote>
<p dir="auto">The two (multiple) shortcuts are assigned, something you can’t do with Shortcut Mapper…</p>
</blockquote>
<p dir="auto">You <em>can</em> assign multiple, but only for the Scintilla commands.</p>
<blockquote>
<p dir="auto">Edit =&gt; Indent =&gt; menu items are not quite doing what they advertise … I never knew they were there but now that I do, I like the functionality I’ve implemented above…</p>
</blockquote>
<p dir="auto">Yes, but it seems like standard Notepad++ could do better here.  I mean, the stuff in the <em>Edit</em> -&gt; <em>Indent</em> menu is rather pointless if it is just going to do the same thing as <em>Tab</em> or <em>Shift+Tab</em>.<br />
Or maybe the idea is to give script writers a way to invoke these keys without calling a “key sender”?<br />
I have no idea of the history on this.<br />
But I do know that <em>Increase Line Indent</em> (and <em>Decrease</em>) surely seems misleading (unless you have a multiline selection).</p>
<p dir="auto">BTW, if you like source code references, here’s where in Scintilla the <em>Tab</em> keycombos get processed, and you can see the difference in the multiline versus non-multiline handling:  <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/3b2d2bb300d01fe02091c837bc65f87d07cf6b8c/scintilla/src/Editor.cxx#L3953" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/blob/3b2d2bb300d01fe02091c837bc65f87d07cf6b8c/scintilla/src/Editor.cxx#L3953</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/55959</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55959</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 Jul 2020 15:01:38 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 14:46:23 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> said in <a href="/post/55955">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">Probably I am not adding new information, but the oddness of this situation made me do my own little investigation.</p>
</blockquote>
<p dir="auto">Thanks Alan - I surmised as much and it’s good to have someone confirm by actually looking at N++ source (I didn’t know where to begin to find it).  I had assumed they were just calling the SCI_TAB and SCI_BACKTAB and looks like indeed that’s what they do.</p>
<p dir="auto">You can find the SCI_TAB and SCI_BACKTAB in Shortcut Mapper as well as some shortcuts for Cut / Paste:</p>
<p dir="auto"><img src="/assets/uploads/files/1594910538558-46509dd5-28ad-4992-bf3d-f2da6ddeb1ef-image.png" alt="46509dd5-28ad-4992-bf3d-f2da6ddeb1ef-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And notice the Edit menu for Cut / Paste:</p>
<p dir="auto"><img src="/assets/uploads/files/1594910594818-23c7e941-b00c-4225-92a4-50a4e16c63b8-image.png" alt="23c7e941-b00c-4225-92a4-50a4e16c63b8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The two (multiple) shortcuts are assigned, something you can’t do with Shortcut Mapper, so again, assuming N++ code is somehow adding the shortcuts based on Scintilla “defaults” or something?</p>
<p dir="auto">So to sum up from our previous comments, it seems the Edit =&gt; Indent =&gt; menu items are not quite doing what they advertise.  Not sure this is a bug, rather just a discrepancy between what the menu item implies and what it actually does.</p>
<p dir="auto">To be honest, I never knew they were there but now that I do, I like the functionality I’ve implemented above with NppExec - it’ll come in real handy when editing Python where indents <strong>MATTER</strong> and i can’t just add or comment out loops (like with Perl) when troubleshooting - I need to also change indent levels.  It’ll be easier now with my new shortcuts!</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55957</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55957</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 16 Jul 2020 14:46:23 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 14:45:52 GMT]]></title><description><![CDATA[<p dir="auto">Interestingly, if you remove the <em>Tab</em> and <em>Shift+Tab</em> mappings on the <em>Scintilla commands</em> page in <em>Shortcut Mapper</em>, the indent stuff in the <em>Edit</em> menu now looks like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1594910494018-1664f52f-4814-4a11-89e3-71897761ec51-image.png" alt="1664f52f-4814-4a11-89e3-71897761ec51-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Note, no key mappings shown to the right of the commands.</p>
<p dir="auto">So then it would seem that <em>Tab</em> and <em>Shift+Tab</em> are now totally unmapped.</p>
<p dir="auto">BUT…trying them in an editor window I see that <em>Tab</em> still works.  Curiouser and curiouser…  Of course, maybe now it is at the point where it is just inserting a raw <code>\x09</code>.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55956</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 Jul 2020 14:45:52 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 16 Jul 2020 14:33:05 GMT]]></title><description><![CDATA[<p dir="auto">More horse beating:</p>
<p dir="auto">So it sure seems odd.<br />
These commands <em>seem</em> to have <em>Tab</em> and <em>Shift+Tab</em> tied to them:</p>
<p dir="auto"><img src="/assets/uploads/files/1594909784212-a159b54f-45c8-44eb-9ba1-5cb349e14415-image.png" alt="a159b54f-45c8-44eb-9ba1-5cb349e14415-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">These commands aren’t in the <em>Shortcut Mapper</em> (that I could find, in the <em>Edit</em> category) so perhaps what is boxed in blue above is a hard-coding?</p>
<p dir="auto">At run-time the corresponding code is not hit with the key presses but only invoking via the menu items:</p>
<pre><code>    case IDM_EDIT_INS_TAB:
        _pEditView-&gt;execute(SCI_TAB);
        break;

    case IDM_EDIT_RMV_TAB:
        _pEditView-&gt;execute(SCI_BACKTAB);
        break;
</code></pre>
<p dir="auto">And, when invoking via menu, all they do is the same thing a <em>Tab</em> or <em>Shift+Tab</em> does via the normal <em>Scintilla</em> page mappings in <em>Shortcut Mapper</em>.</p>
<p dir="auto">This certainly is odd.</p>
<p dir="auto">But then onto the actual behavior.<br />
This is all Scintilla behavior.<br />
Someone in that project decided that this is how SCI_TAB and SCI_BACKTAB should work.<br />
It seems very reasonable for the multiline selection case.<br />
As discussed above, for the non multiline case, it is less so.</p>
<p dir="auto">Probably I am not adding new information, but the oddness of this situation made me do my own little investigation.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55955</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55955</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 16 Jul 2020 14:33:05 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 19 Jun 2025 18:33:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cr8zy_ivan" aria-label="Profile: Cr8zy_Ivan">@<bdi>Cr8zy_Ivan</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/55912">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">Assume you may want the reverse as well.</p>
</blockquote>
<p dir="auto">Not to beat a dead horse, but I updated my NppExec scripts.  I liked <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> MACRO, but like my scripts, if I had multiple lines selected, they only operated on the line where the cursor anchor point was.  However, with multiple lines selected and the cursor in the middle of one of them, the Edit =&gt; Indent =&gt; menu options work as expected - they only <strong>don’t</strong> work when you have a single line and the cursor in the middle.</p>
<p dir="auto">I’ve tested lots of cases and I think the following scripts work as I expect.</p>
<ul>
<li>
<p dir="auto">With only a single line either highlighted or cursor anywhere in the line - INDENT or UNINDENT - keeping the cursor where it was IF it was in the middle of the text somewhere.  Note if the cursor is in the preceding whitespace, indents are inserted at the far left margin, so the cursor shifts INDENT# of spaces with each insert.</p>
</li>
<li>
<p dir="auto">If multiple lines are selected and the cursor is anywhere either fully selecting the lines or in the middle of them somewhere - INDENT or UNINDENT ALL LINES - cursor may <strong>not</strong> stay in the current position, rather the highlighting is fully completed to all lines.  See example:</p>
</li>
</ul>
<p dir="auto"><img src="/assets/uploads/files/1594907714772-cb3c7db3-5825-49c2-9441-1a94f121255d-image.png" alt="cb3c7db3-5825-49c2-9441-1a94f121255d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1594907748766-5f79c162-3ab8-4b5b-8a2b-604ae9f138a8-image.png" alt="5f79c162-3ab8-4b5b-8a2b-604ae9f138a8-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The scripts:</p>
<pre><code>::lineindent
NPP_CONSOLE keep

SCI_SENDMSG SCI_GETSELECTIONSTART 
SCI_SENDMSG SCI_LINEFROMPOSITION $(MSG_RESULT)
SET LOCAL START = $(MSG_RESULT)

SCI_SENDMSG SCI_GETSELECTIONEND
SCI_SENDMSG SCI_LINEFROMPOSITION $(MSG_RESULT)
SET LOCAL END = $(MSG_RESULT)

IF "$(START)"!="$(END)" THEN
    NPP_MENUCOMMAND Edit\Indent\Increase Line Indent
ELSE
    SCI_SENDMSG SCI_GETCURRENTPOS
    SET LOCAL POS = $(MSG_RESULT)
    SCI_SENDMSG SCI_GETTABWIDTH 
    SET LOCAL TAB = $(MSG_RESULT)

    SCI_SENDMSG SCI_GOTOLINE $(CURRENT_LINE)
    NPP_MENUCOMMAND Edit\Indent\Increase Line Indent
    SET LOCAL POS ~ $(POS) + $(TAB)
    SCI_SENDMSG SCI_GOTOPOS $(POS)
ENDIF

::lineunindent
NPP_CONSOLE keep

SCI_SENDMSG SCI_GETSELECTIONSTART 
SCI_SENDMSG SCI_LINEFROMPOSITION $(MSG_RESULT)
SET LOCAL START = $(MSG_RESULT)

SCI_SENDMSG SCI_GETSELECTIONEND
SCI_SENDMSG SCI_LINEFROMPOSITION $(MSG_RESULT)
SET LOCAL END = $(MSG_RESULT)

IF "$(START)"!="$(END)" THEN
    NPP_MENUCOMMAND Edit\Indent\Decrease Line Indent
ELSE
    SCI_SENDMSG SCI_GETCURRENTPOS
    SET LOCAL POS = $(MSG_RESULT)
    SCI_SENDMSG SCI_GETTABWIDTH 
    SET LOCAL TAB = $(MSG_RESULT)

    SCI_SENDMSG SCI_GOTOLINE $(CURRENT_LINE)
    NPP_MENUCOMMAND Edit\Indent\Decrease Line Indent
    SCI_SENDMSG SCI_GETLINEINDENTATION $(CURRENT_LINE)
    IF "$(MSG_RESULT)"!="0" THEN
        SET LOCAL POS ~ $(POS) - $(TAB)
    ENDIF
    SCI_SENDMSG SCI_GOTOPOS $(POS)
ENDIF
</code></pre>
<p dir="auto">I then use NppExec to add them to the Macro menu and then Shortcut Mapper to add the “Ctrl + Alt + [ and ]” shortcuts as <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a>  did (note the OP’s request of “Ctrl + [ and ]” are already taken by SCI_PARAUP and SCI_PARADOWN respectively)</p>
<p dir="auto"><img src="/assets/uploads/files/1594907991777-b8099f98-63c9-4849-847a-47cb9194666c-image.png" alt="b8099f98-63c9-4849-847a-47cb9194666c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55953</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 19 Jun 2025 18:33:09 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 20:06:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/55926">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">to move the caret, from current position on a line to the next tabstop</p>
</blockquote>
<p dir="auto">I don’t think so; I think OP would want to have the line indented one tab stop (be it <em>x</em> space characters or one tab character) and then have the caret remain in the line between the two characters it originally was between.  But hey, I could be wrong.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55928</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55928</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 15 Jul 2020 20:06:07 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 19:44:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>All</strong>,</p>
<p dir="auto">My bad ! I read too <strong>quickly</strong> !  Then, my <strong>previous</strong> post is quite <strong>irrelevant</strong> !</p>
<hr />
<p dir="auto">So, if I <strong>completely</strong> understood the problem, the OP want, via a shortcut, to move the <strong>caret</strong>, from <strong>current</strong> position on a line to the <strong>next</strong> <strong><code>tabstop</code></strong> ? That is to say to the <strong>column</strong> = <strong><code>n x T + 1</code></strong>, where <strong><code>T</code></strong> is the <strong>tab size</strong> and <strong><code>n</code></strong> an <strong>integer</strong> <strong><code>&gt;= 0</code></strong> ?</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55926</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55926</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 15 Jul 2020 19:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:58:38 GMT]]></title><description><![CDATA[<p dir="auto">Perhaps of interest; they are links, click on them:</p>
<ul>
<li><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5493" rel="nofollow ugc">ISSUE 5493</a></li>
<li><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5721" rel="nofollow ugc">ISSUE 5721</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/55924</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55924</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:44:05 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> said in <a href="/post/55922">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">Personally, I think the tab key should have the multi-purpose meaning: change indent when typed anywhere before the first non-space/tab character of a line, and insert tab (or equivalent spaces) anywhere after that.</p>
</blockquote>
<p dir="auto">And I concur with that!  I think we certainly agree Edit =&gt; Indent =&gt; In/Decrease Line Indent don’t work as advertised - regardless of the shortcut key mapped to them.</p>
<p dir="auto">My point about the Shortcut Mapper was I don’t see the “Tab” / “Shift+Tab” mapped to the Edit =&gt; Indent … options leading me to wonder (without looking at the N++ code) if they just insert a SCI_TAB / SCI_BACKTAB character and there is no “logic” behind those items.</p>
<p dir="auto">In that case it’s not a “bug” - it’s more a feature request to have them “do what they say”.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55923</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55923</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:38:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> said in <a href="/post/55918">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">“Tab” and “Shift+Tab” are actually mapped to Edit =&gt; Indent =&gt; Increase Line Indent / Decrease Line Indent.</p>
</blockquote>
<p dir="auto">And <em>those</em> functions have the bug: because if you are in the middle of the line, and use even the edit-menu version, it will actually insert the tab (or equivalent spaces, depending on setting), <em>not</em> increase the line indent, as advertised.</p>
<p dir="auto">Personally, I think the tab key should have the multi-purpose meaning: change indent when typed anywhere before the first non-space/tab character of a line, and insert tab (or equivalent spaces) anywhere after that.</p>
<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> said,</p>
<blockquote>
<p dir="auto">Yes but that moves the caret; may not be wanted by the OP.</p>
</blockquote>
<p dir="auto">Right, I meant to mention that caveat, but obviously forgot.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55922</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55922</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:38:15 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:32:49 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> said in <a href="/post/55919">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">It can be recorded as HOME followed by TAB</p>
</blockquote>
<p dir="auto">Yes but that moves the caret; may not be wanted by the OP.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55920</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55920</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:31:44 GMT]]></title><description><![CDATA[<p dir="auto">I concur with <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> 's interpretation.</p>
<p dir="auto">However, it’s macro-recordable:</p>
<pre><code>        &lt;Macro name="FancyIndent" Ctrl="yes" Alt="yes" Shift="no" Key="221"&gt;
            &lt;Action type="0" message="2453" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2327" wParam="0" lParam="0" sParam="" /&gt;
        &lt;/Macro&gt;
        &lt;Macro name="FancyUnindent" Ctrl="yes" Alt="yes" Shift="no" Key="219"&gt;
            &lt;Action type="0" message="2453" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="0" message="2328" wParam="0" lParam="0" sParam="" /&gt;
</code></pre>
<p dir="auto">It can be recorded as <code>HOME</code> followed by <code>TAB</code> or <code>HOME</code> followed by <code>Shift+TAB</code> (assuming the default <strong>Settings &gt; Shortcut Mapper &gt; Scintilla Commands</strong> of <code>SCI_VCHOMEWRAP</code> = <code>Home</code>)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55919</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55919</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:31:44 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 19 Jun 2025 18:33:27 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><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/cr8zy_ivan" aria-label="Profile: Cr8zy_Ivan">@<bdi>Cr8zy_Ivan</bdi></a> said in <a href="/post/55910">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">I know there’s “Tab” and “Shift + Tab”, but they work only on multi-line selection, or when the caret is located at the beginning of a line.</p>
</blockquote>
<p dir="auto">OP says the above and my testing concurs.  Is this not a bug?  I mean the “Tab” and “Shift+Tab” are actually mapped to Edit =&gt; Indent =&gt; Increase Line Indent / Decrease Line Indent.  From those option names, I would think the OP’s desired behaviour would be accomplished.</p>
<p dir="auto">I also see that in the Settings =&gt; Shortcut Mapper…, “Tab” and “Shift+Tab” are mapped to Scintilla commands SCI_TAB and SCI_BACKTAB respectively, which don’t implement what the OP wants nor do they do “Increase Line Indent” or “Decrease Line Indent” as “advertised”.</p>
<p dir="auto">Maybe it’s semantics, the command menu options should be renamed to “insert Tab” / “remove Tab”, or their behavior should be changed to implement what the OP is asking for so they work “as advertised”.</p>
<p dir="auto">What do you think?</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55918</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55918</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Thu, 19 Jun 2025 18:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:12:23 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> said in <a href="/post/55916">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">Wasn’t the OP’s desire to have the caret be in the middle of a line, then have a way to press a key and get the line indented (on the far left)?</p>
</blockquote>
<p dir="auto">I thought so and that’s what my NppExec scripts do (both adding or subtracting a level of indent depending on which you use).</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55917</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55917</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:12:23 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Wed, 15 Jul 2020 18:13:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said in <a href="/post/55915">Change Indent Keyboard Shortcut?</a>:</p>
<blockquote>
<p dir="auto">With a macro</p>
</blockquote>
<p dir="auto">I must be missing something.<br />
With this all I get is a tab character inserted at the current caret position (in the middle of a line).<br />
Wasn’t the OP’s desire to have the caret be in the middle of a line, then have a way to press a key and get the line indented (on the far left)?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> Right (see below), that’s why I’m questioning <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>’s macro thing.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55916</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55916</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 15 Jul 2020 18:13:11 GMT</pubDate></item><item><title><![CDATA[Reply to Change Indent Keyboard Shortcut? on Thu, 19 Jun 2025 18:32:36 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/cr8zy_ivan" aria-label="Profile: Cr8zy_Ivan">@<bdi>Cr8zy_Ivan</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: michael-vincent">@<bdi>michael-vincent</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Two</strong> other solutions :</p>
<ul>
<li>
<p dir="auto">The more <strong>simple</strong> :</p>
<ul>
<li>
<p dir="auto">Press the <strong><code>ALT</code></strong> key and, <strong>simultaneously</strong>, hit the <strong><code>0</code></strong> key, then the <strong><code>9</code></strong> key of the <strong>numeric</strong> keypad</p>
</li>
<li>
<p dir="auto">Release the <strong><code>ALT</code></strong> key</p>
</li>
</ul>
</li>
</ul>
<hr />
<ul>
<li>With a <strong>macro</strong> :</li>
</ul>
<pre><code class="language-xml">        &lt;Macro name="Insertion TABULATION  ( \x09 )" Ctrl="yes" Alt="no" Shift="no" Key="221"&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x0009;" /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55915</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55915</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 19 Jun 2025 18:32:36 GMT</pubDate></item></channel></rss>