<?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 get Notepad++ to automatically indent one tab when hitting enter.]]></title><description><![CDATA[<p dir="auto">Hello Notepad++ Forum;</p>
<p dir="auto"><strong>Question:</strong> <em>How can I get Notepad++ to indent one tab or two spaces when I hit the enter key?</em></p>
<p dir="auto">Here is how Notepad++ currently does:</p>
<p dir="auto">if (in_array($some_value,$some_arr)){<br />
<em>// no indent</em>		<br />
}</p>
<p dir="auto">Here’s what I would like for it to do:</p>
<p dir="auto">if (in_array($some_value,$some_arr)){<br />
<em>// indent one tab or two spaces</em><br />
<em>tab</em>}</p>
<p dir="auto">Thank you in advance.</p>
<p dir="auto">PN</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11806/how-to-get-notepad-to-automatically-indent-one-tab-when-hitting-enter</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 11:01:14 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11806.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 May 2016 08:53:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to get Notepad++ to automatically indent one tab when hitting enter. on Wed, 25 May 2016 21:43:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pete-norris" aria-label="Profile: Pete-Norris">@<bdi>Pete-Norris</bdi></a>  I see.  I’m pretty certain the lexer for the language (PHP in your case) controls the auto-indent behavior. I don’t think there is any way at run-time to modify its behavior. I assume you’d have to edit the lexer to make it behave differently and then build a custom NPP.</p>
<p dir="auto">I am not aware of any, but there may be a plug-in for NPP you could find that handles indentation in some other way.</p>
<p dir="auto">Sorry I have no better ideas.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16103</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16103</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Wed, 25 May 2016 21:43:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to get Notepad++ to automatically indent one tab when hitting enter. on Tue, 24 May 2016 17:30:09 GMT]]></title><description><![CDATA[<p dir="auto">Jim;</p>
<p dir="auto">I’m using PHP. My initial question was not clear. It’s my fault.</p>
<p dir="auto">The first line <em>does</em> indent. It’s the second line I am talking about - the one that has the closing bracket.</p>
<p dir="auto">// PERL does like this:<br />
if ($one == NULL){<br />
}</p>
<p dir="auto">// C and PHP both do like this:<br />
if ($one == NULL){<br />
–&gt;one tab indent	<br />
} bracket does not indent</p>
<p dir="auto">// I’ve been using UltraEdit for 15+ years. It does like this:<br />
if ($one == NULL){<br />
–&gt;} bracket one tab indent</p>
<p dir="auto">// I’m trying to get Notepad++ to do like this:<br />
if ($one == NULL){<br />
–&gt;one bracket first line indent<br />
–&gt;} bracket one tab indent</p>
<p dir="auto">I became accustomed to indenting the bracket one tab or two spaces with UltraEdit.</p>
<p dir="auto">The last  two upgrades of UltraEdit did not work right for me. That’s when I started using Notepad++.</p>
<p dir="auto">Notepad++ is a really nice program. It’s had a lot of thought and hard work go into it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16083</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16083</guid><dc:creator><![CDATA[Pete Norris]]></dc:creator><pubDate>Tue, 24 May 2016 17:30:09 GMT</pubDate></item><item><title><![CDATA[Reply to How to get Notepad++ to automatically indent one tab when hitting enter. on Thu, 19 May 2016 18:50:55 GMT]]></title><description><![CDATA[<p dir="auto">I believe the functionality you are looking for is controlled by the lexer for the “language” of the file you are editing (e.g. file.c, file.asm, file.cpp).</p>
<p dir="auto">It looks like you may be editing PERL. If I edit a .C file, autoindent works as expected, but if I set the Language to PERL, autoindent does not work as I would hope.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16012</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16012</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Thu, 19 May 2016 18:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to get Notepad++ to automatically indent one tab when hitting enter. on Thu, 19 May 2016 14:54:15 GMT]]></title><description><![CDATA[<p dir="auto">Jim;</p>
<p dir="auto">Thanks for responding to my question. I appreciate the help.</p>
<p dir="auto">The AutoIndent was already checked in the  Settings–&gt;Preferences–&gt;MISC. dialog box.</p>
<p dir="auto">The Settings–&gt;Preferences–&gt;Tab Settings is set at 2 (Default). I can increase it to five and it still won’t indent.</p>
<p dir="auto">It looks like it ought to be indenting but it’s not. It could be a bug in the program.</p>
<p dir="auto">Are there any other suggestions I might try?</p>
<p dir="auto">Thanks.</p>
<p dir="auto">PN</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16009</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16009</guid><dc:creator><![CDATA[Pete Norris]]></dc:creator><pubDate>Thu, 19 May 2016 14:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to How to get Notepad++ to automatically indent one tab when hitting enter. on Tue, 17 May 2016 13:53:01 GMT]]></title><description><![CDATA[<p dir="auto">Try Settings–&gt;Preferences–&gt;MISC. and check AutoIndent.</p>
<p dir="auto">You might want/need to change Tab Settings in the Preferences dialog box.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/15968</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/15968</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Tue, 17 May 2016 13:53:01 GMT</pubDate></item></channel></rss>