<?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 avoid Insertion of tab]]></title><description><![CDATA[<p dir="auto">When you start a new line in NP++ the new line is aligned with the previous.<br />
However, instead of inserting the same leading blanks as the previous line, a tab is inserted if the number of blanks equals the tab setting.<br />
This is highly unwanted in my opinion.<br />
How can I switch this behavior off?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/10946/how-to-avoid-insertion-of-tab</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 05:53:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/10946.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Dec 2015 12:25:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 14 May 2021 01:19:19 GMT]]></title><description><![CDATA[<p dir="auto">Option now (version 7.9.5 May 2021) …  as per Settings &gt; Preferences &gt; Language &gt; Tab Settings  … Check the “Replace by space” option.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65954</guid><dc:creator><![CDATA[Allan Ford]]></dc:creator><pubDate>Fri, 14 May 2021 01:19:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Mon, 02 Jul 2018 15:02:44 GMT]]></title><description><![CDATA[<p dir="auto">In Notepad++ version 7.5.1 Claudia’a solution is working!<br />
You can change the tab settings by language, so go to:<br />
Settings -&gt; Preferences -&gt; Tab Settings,<br />
select your language on the <em>right</em> side of the dialog,<br />
and check <strong>Replace by Space</strong></p>
<p dir="auto">I’m not sure which is the first version that uses this kind of config, but I have used it for some time now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33288</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33288</guid><dc:creator><![CDATA[László Fülöp]]></dc:creator><pubDate>Mon, 02 Jul 2018 15:02:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 26 Jan 2018 19:44:14 GMT]]></title><description><![CDATA[<p dir="auto">Workaround: record a macro, and assign it to a useful key, so that it will do the tab-space or space-tab conversion every time you save.  (That way, it will happen automatically on a keyboard-shortcutted save, rather than having to do the multi-menu pulldowns 20-30 times per day.  Note: this method will not intercept clicking on the SAVE icon on the toolbar, or on <code>File &gt; Save</code>; but if you use a keyboard shortcut to save, then this can be just as automatic.)</p>
<ul>
<li>
<p dir="auto">If you want tab-to-space:</p>
<ol>
<li><code>Macro &gt; Start Recording</code></li>
<li><code>Edit &gt; Blank Operations &gt; TAB to space</code></li>
<li><code>File &gt; Save</code></li>
<li><code>Macro &gt; Stop Recording</code></li>
<li><code>Macro &gt; Save Current Recorded Macro</code>
<ul>
<li><strong>Name:</strong> <code>TabToSpaceSave</code></li>
<li>You can assign keyboard shortcut using the <code>☐ Ctrl ☐ Alt ☐ Shift</code> boxes, using the dropdown to select which character.
<ul>
<li>If you want this to be your default <code>Ctrl+S</code> save, you can even replace that (though you’d also have to use the <code>Settings &gt; Shortcut Mapper</code> to modify the normal Save’s keyboard shortcut. (I actually did that, so Trim Trailing Spaces and Save is my default <code>Ctrl+S</code> action)</li>
</ul>
</li>
<li><code>OK</code></li>
</ul>
</li>
</ol>
</li>
<li>
<p dir="auto">If you want leading space to TAB:</p>
<ol>
<li><code>Macro &gt; Start Recording</code></li>
<li><code>Edit &gt; Blank Operations &gt; Space to TAB (leading)</code></li>
<li><code>File &gt; Save</code></li>
<li><code>Macro &gt; Stop Recording</code></li>
<li><code>Macro &gt; Save Current Recorded Macro</code>
<ul>
<li><strong>Name:</strong> <code>LeadingSpaceToTabSave</code></li>
<li>Assign keyboard shortcut, if desired</li>
<li><code>OK</code></li>
</ul>
</li>
</ol>
</li>
</ul>
<p dir="auto">Or, you can manually add the XML that I got when I recorded those two macros, to your <code>%appdata%\notepad++\shortcuts.xml</code>.  (<strong>note</strong>: because NPP overwrites shortcuts.xml on exit, you may have to <em>gasp</em> use a different text editor to insert these lines.  I was able to make it work in NPP by closing all instances of NPP, open NPP, edit the <code>shortcuts.xml</code> file, save, and exit – without changing any NPP settings… but I don’t guarantee that it will work for you.)</p>
<pre><code>    &lt;Macro name="TabToSpaceSave" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
        &lt;Action type="2" message="0" wParam="42046" lParam="0" sParam="" /&gt;
        &lt;Action type="2" message="0" wParam="41006" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
    &lt;Macro name="LeadingSpaceToTABSave" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;
        &lt;Action type="2" message="0" wParam="42053" lParam="0" sParam="" /&gt;
        &lt;Action type="2" message="0" wParam="41006" lParam="0" sParam="" /&gt;
    &lt;/Macro&gt;
</code></pre>
<p dir="auto">Close shortcuts.xml.  Exit and reload Notepad++.  Now those macros should exist in your <code>Macro</code> menu.  You can then use the <code>Settings &gt; Shortcut Mapper &gt; Macros</code> to edit the assigned keystrokes for each version.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29770</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29770</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 26 Jan 2018 19:44:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 26 Jan 2018 19:07:23 GMT]]></title><description><![CDATA[<p dir="auto">Sorely needed. Please implement.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29769</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29769</guid><dc:creator><![CDATA[Paul Dowdle]]></dc:creator><pubDate>Fri, 26 Jan 2018 19:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Thu, 18 Jan 2018 19:05:04 GMT]]></title><description><![CDATA[<p dir="auto">As a workaround you could add a keyboard shortcut for  Edit-&gt;Blank Operations-&gt;Tab to space under Settings-&gt;Keyboard…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29557</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29557</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Thu, 18 Jan 2018 19:05:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Wed, 17 Jan 2018 08:37:18 GMT]]></title><description><![CDATA[<p dir="auto">I also vote this feature should be implemented ASAP. That is - indent of the previous line must be preserved. I work with lots of different file types, some are space indented, and some tab indented - that’s simply how world is. Having to Edit-&gt;Blank Operations-&gt;Tab to space 50 times a day is really frustrating.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29506</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29506</guid><dc:creator><![CDATA[Nenad Filipovic]]></dc:creator><pubDate>Wed, 17 Jan 2018 08:37:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Tue, 20 Jun 2017 10:25:07 GMT]]></title><description><![CDATA[<p dir="auto">I really wanted this feature too.<br />
So I compiled Notepad++ from sources and modified the behavior. With a few other tweaks I wanted.</p>
<p dir="auto">Here are the source patches: <a href="https://github.com/gstavi/npp/tree/master/patch" rel="nofollow ugc">https://github.com/gstavi/npp/tree/master/patch</a><br />
Here are <a href="https://www.dropbox.com/s/eprtchwkssqalf1/npp_gur.zip?dl=0" rel="nofollow ugc">NPP binaries</a></p>
<p dir="auto">On the other hand the base version I am using is still 6.7.8</p>
]]></description><link>https://community.notepad-plus-plus.org/post/25019</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/25019</guid><dc:creator><![CDATA[gstavi]]></dc:creator><pubDate>Tue, 20 Jun 2017 10:25:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Mon, 19 Jun 2017 15:46:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I really want this this feature too.</p>
<p dir="auto">I use visual stupid, and notepad++ to store visual studio data notes when I am debugging - namely things like call stacks…</p>
<p dir="auto">These look like:</p>
<blockquote>
<p dir="auto">Function 1<br />
Function 2<br />
Function 3<br />
etc</p>
</blockquote>
<p dir="auto">Now I’d like to go back to the margin after a blank space “^\n$” or whatever the silly windows newline is this week, but instead it starts off with a tab at the start, so when i next paste the call stack i get:</p>
<p dir="auto">[unwanted tab] &gt; Function A<br />
Function B<br />
Function C<br />
etc.</p>
<p dir="auto">I don’t want this, i want:</p>
<blockquote>
<p dir="auto">Function 1<br />
Function 2<br />
Function 3<br />
etc</p>
</blockquote>
<p dir="auto">So that I don’t have to go back through every single tab that your editor inserted.</p>
<p dir="auto">I love notepad++, but this is soo irritating because this comes up for me 20-30 times a day. I really think this would make your editor soo much less irritating to use.</p>
<p dir="auto">Cheers!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/24996</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/24996</guid><dc:creator><![CDATA[Anon Wibble]]></dc:creator><pubDate>Mon, 19 Jun 2017 15:46:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 18 Dec 2015 14:07:12 GMT]]></title><description><![CDATA[<p dir="auto">With a quick Google search I ran across the TabIndentSpaceAlign plugin (available in the PluginManager).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12658</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12658</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 18 Dec 2015 14:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 18 Dec 2015 09:03:09 GMT]]></title><description><![CDATA[<p dir="auto">Claudia,</p>
<p dir="auto">An example.</p>
<p dir="auto">My default settings are to keep tabs as tabs, but I have some file types (eg Perl scripts) set to replace tabs with spaces.</p>
<p dir="auto">I often create new small file Perl script files. I just type the entire script into a new and empty buffer, then do a <strong>Save as</strong> with a <strong>.pl</strong> extension. As I type I enter spaces for indents. After hitting enter, the newline is indented with tabs. As I want spaces to indent these Perl files I have to use the <strong>Edit =&gt; Blank operations =&gt; Tab to spaces</strong> command on the whole file just before or just after the <strong>Save as</strong>.</p>
<p dir="auto">It would be more convenient for me if the auto indent copied the leading white space of the previous line. The current behaviour is to use the default tab settings to produce an indent of the same size as the line above.</p>
<p dir="auto">This behaviour is a minor inconvenience to me. I had not considered it worthy of a feature request, but you asked for why it may be useful.</p>
<p dir="auto">Adrian</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12655</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12655</guid><dc:creator><![CDATA[AdrianHHH]]></dc:creator><pubDate>Fri, 18 Dec 2015 09:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Thu, 17 Dec 2015 22:33:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello EWKruyt,<br />
afaik this isn’t possible yet.<br />
May I ask you why it is important for you to have this feature?<br />
At the moment I don’t see any benefit, which doesn’t mean there<br />
isn’t one, maybe you can enlight me?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12647</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12647</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 17 Dec 2015 22:33:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Thu, 17 Dec 2015 13:25:31 GMT]]></title><description><![CDATA[<p dir="auto">In that case all tabs are always replaced by spaces.<br />
I just want that the indent of the previous line is kept as it is:<br />
either tab or spaces.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12644</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12644</guid><dc:creator><![CDATA[EWKruyt]]></dc:creator><pubDate>Thu, 17 Dec 2015 13:25:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 11 Dec 2015 15:45:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">to prevent that tab instead space gets inserted goto<br />
Settings -&gt; Preferences -&gt; Tab Settings and check <strong>Replace by Space</strong></p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12556</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12556</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Fri, 11 Dec 2015 15:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to avoid Insertion of tab on Fri, 11 Dec 2015 15:48:04 GMT]]></title><description><![CDATA[<p dir="auto"><s><code>Settings &gt; Preferences &gt; MISC.</code> and turn off auto-indent.</s> Helps if I read then entire post :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/12555</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/12555</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 11 Dec 2015 15:48:04 GMT</pubDate></item></channel></rss>