<?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[Request about the Auto-indent feature]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am writing this because the Auto-indent feature is behaving differently in Notepad++ compared to other editors that have this feature.<br />
Because of this I keep Auto-indent disabled, even though I would like to have it enabled.</p>
<p dir="auto">If you have a line in which the text starts after a number of spaces, the cursor is at the end of that line and you press Enter, then the same number of spaces are automatically added on the new line. This is correct behavior.<br />
Now if you delete the spaces on the current line and press Enter again, the new line should not have any spaces, but it gets the same indent like the first line above which has some text.<br />
In other editors that I have used if you press Enter while you are on a blank line, the new line will be blank as well, but not in Notepad++ if there is a line with some indent above.</p>
<p dir="auto">I don’t want to have spaces on blank lines, but because of this behavior I have to use the trim trailing space feature quite often if I have Auto-indent enabled.<br />
Please change this behavior or add an option to customize it.</p>
<p dir="auto">Best Regards,<br />
Cyril</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/117/request-about-the-auto-indent-feature</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 23:59:49 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/117.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jul 2015 15:14:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Request about the Auto-indent feature on Mon, 13 Jul 2015 23:40:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Scott</strong>,</p>
<p dir="auto">Once again, you’re completely <strong>right</strong>. Although the <strong>two</strong> functions <strong>Insert Blank Line Above/Under Current</strong> came with a <strong>recent</strong> N++ version<br />
( <strong>v6.4.4</strong> ), I should have looked around the different N++'s features, <strong>before</strong> posting :-(</p>
<p dir="auto">Indeed, your solution behaves <strong>exactly</strong> like mine. So, my post was, therefore, <strong>useless</strong> !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/381</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/381</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 13 Jul 2015 23:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to Request about the Auto-indent feature on Mon, 13 Jul 2015 13:16:13 GMT]]></title><description><![CDATA[<p dir="auto">It seems to me that the same behavior as guy038’s macro will occur if one uses the “Insert Blank Line Below Current” command (default Ctrl+Alt+Shift+Enter), also found on the Edit -&gt; Line Operations menu.</p>
<p dir="auto">Invoking this command creates an empty line below the current line (obviously), but more importantly seems to always leave the caret/cursor in column 1, regardless of the indentation of the line above (the one that the caret was on when this was invoked).</p>
<p dir="auto">Thus, no macro needed!  Although, holding down all those modifiers is a bit of a challenge…solution: remap to something simpler.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/368</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/368</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Mon, 13 Jul 2015 13:16:13 GMT</pubDate></item><item><title><![CDATA[Reply to Request about the Auto-indent feature on Thu, 09 Jul 2015 20:07:28 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Cyril</strong> and <strong>Scott</strong>,</p>
<p dir="auto">You can emulate a <strong>“hard” Enter</strong>, which ALWAYS moves cursor on <strong>column 1</strong>, very easily :-) This could be a <strong>work-around</strong> !</p>
<ul>
<li>
<p dir="auto">Open your <strong>shortcuts.xml</strong> file, <em>with an <strong>OTHER</strong> editor than Notepad++</em> ( Microsoft <strong>Notepad</strong> or <strong>Wordpad</strong> or any other simple editor … )</p>
</li>
<li>
<p dir="auto">Depending of your N++ installation, the <strong>shortcuts.xml</strong> file may be located</p>
<ul>
<li>in the <strong>%AppData%\Roaming\Notepad++</strong> folder</li>
<li>in the <strong>same</strong> folder than <strong>Notepad++.exe</strong></li>
</ul>
</li>
<li>
<p dir="auto">Inside the <strong>macro</strong> section of <strong>shortcuts.xml</strong>, just add these <strong>five</strong> lines, below, which defines a <strong>new</strong> macro, that I called <strong>Cursor at column 1</strong>. Of course, you can choose any other text !</p>
<pre><code>  &lt;Macro name="Cursor at column 1" Ctrl="yes" Alt="no" Shift="yes" Key="13"&gt;
      &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x000D;" /&gt;
      &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="&amp;#x000A;" /&gt;
      &lt;Action type="0" message="2395" wParam="0" lParam="0" sParam="" /&gt;
  &lt;/Macro&gt;
</code></pre>
</li>
</ul>
<p dir="auto">The value <strong>2395</strong> comes from the <strong>Scintilla.h</strong> file, found in the archive <strong>npp.6.7.9.src.zip</strong>, in the folder <strong>notepad-plus-plus-master\scintilla\include</strong> ( <code>#define SCI_DELLINELEFT 2395</code> )</p>
<p dir="auto">It’s not very difficult to guess what that simple macro does, isn’t it !</p>
<p dir="auto">I associated the shortcut <strong>CTRL + SHIFT + Enter</strong> to that macro, because I think it’s not used on <strong>N++ default</strong> configuration. Just verify on your own configuration. If necessary, choose the menu option <strong>Macro - Modify Shortcut/Delete Macro</strong>, to change it.</p>
<p dir="auto">Well, now, :</p>
<ul>
<li>
<p dir="auto">Write some <strong>spaces</strong> or <strong>tabulations</strong>, followed by any text, in a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">If you end this text by a hit on the <strong>Enter</strong> key, you’ll get, <em>as expected</em>, the <strong>previous</strong> indentation</p>
</li>
<li>
<p dir="auto">Now type, again, some text and <strong>end</strong> this line, <em>using the shortcut <strong>CTRL + SHIFT + Enter</strong></em> =&gt; Your cursor is back to <strong>column 1</strong></p>
</li>
<li>
<p dir="auto">Then, hit, repeatedly, on <strong>CTRL + SHIFT + Enter</strong> =&gt; You still get some <strong>pure blank</strong> lines</p>
</li>
<li>
<p dir="auto">And, as soon as you hit the <strong>Enter</strong> key, ONLY, you’ll obtain, again, the <strong>previous</strong> indentation !</p>
</li>
</ul>
<p dir="auto">Hope it may be useful to someone, anyway !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">Very soon, with the <strong>Christophe Meriaux</strong>’s PullRequest ( see below ), it <strong>won’t be</strong> necessary to use an <strong>other</strong> editor to change the <strong>shortcuts.xml</strong> file. You’ll just change it from <strong>inside N++</strong>, then <strong>stop</strong> and <strong>restart</strong> N++ to get the changes :-)</p>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/notepad-plus-plus/pull/70" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/pull/70</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/301</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/301</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 09 Jul 2015 20:07:28 GMT</pubDate></item><item><title><![CDATA[Reply to Request about the Auto-indent feature on Thu, 09 Jul 2015 17:33:37 GMT]]></title><description><![CDATA[<p dir="auto">This behavior makes me crazy also.  I’ve got to believe that this complaint has been registered many times, although I haven’t checked (that’s on me).  Everyone has their own priorities on what they work on in their software, and for Notepad++ it is no different.  One positive is that the source code is available, so anyone could get in there and find the “problem” and fix it, for just themselves, or to possibly to show the world.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/300</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/300</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 09 Jul 2015 17:33:37 GMT</pubDate></item></channel></rss>