<?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[Auto-completion of brackets only works when text is isolated?]]></title><description><![CDATA[<p dir="auto">Hello everyone! I hope you’re having a good day.</p>
<p dir="auto">I am having some issues with Notepad++ v7.8.4 on Win10.<br />
Auto closing of brackets works perfect when the bracket is isolated, but as soon as it’s next to another delimitor, it seems to not recognise it.<br />
Same scenario works ok on Atom.<br />
Maybe a bug? Or it’s just the way it’s intended to work?</p>
<p dir="auto">Thanks in advance for your opinion!</p>
<p dir="auto"><strong>Notepad++</strong><br />
<img src="https://i.ibb.co/wBP0JbM/Animation1.gif" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Atom</strong><br />
<img src="https://i.ibb.co/dbhHNsh/Animation2.gif" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21459/auto-completion-of-brackets-only-works-when-text-is-isolated</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 07:02:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21459.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Jul 2021 12:50:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Auto-completion of brackets only works when text is isolated? on Sat, 10 Jul 2021 23:36:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/marianogedisman" aria-label="Profile: marianogedisman">@<bdi>marianogedisman</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I did some tests, regarding the <strong>auto-completion</strong> feature and here are the present <strong>main</strong> rules of this mechanism :</p>
<ul>
<li>
<p dir="auto">If the box <strong><code>"</code></strong>  or <strong><code>'</code></strong> is <strong>ticked</strong> then, when pressing the <strong><code>"</code></strong> or <strong><code>'</code></strong> key, the <em>auto-completion</em> occurs :</p>
<ul>
<li>
<p dir="auto">If the character <strong>before</strong> the caret belongs to class <strong><code>[\t\r\n\x20]</code></strong> and the character <strong>after</strong> the caret belongs to class <strong><code>[\t\r\n\x20)\\]}]</code></strong></p>
</li>
<li>
<p dir="auto">If the character <strong>before</strong> the caret belongs to class <strong><code>[(\\[{]</code></strong> and the character <strong>after</strong> the caret belongs to class <strong><code>[\t\r\n\x20]</code></strong></p>
</li>
<li>
<p dir="auto">If the caret is <strong>within</strong> the <strong><code>()</code></strong> or <strong><code>[]</code></strong> or <strong><code>{}</code></strong> string</p>
</li>
</ul>
</li>
<li>
<p dir="auto">If the box <strong><code>{</code></strong> or <strong><code>[</code></strong> or <strong><code>{</code></strong> is <strong>ticked</strong> then, when pressing the <strong><code>(</code></strong> or <strong><code>[</code></strong> or <strong><code>{</code></strong> key, the <em>auto-completion</em> occurs :</p>
<ul>
<li>
<p dir="auto"><strong>Whatever</strong> the character <strong>before</strong> the caret</p>
</li>
<li>
<p dir="auto">If the character <strong>after</strong> the caret belongs to the class <strong><code>[\t\r\n\x20)\\]}]</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">If a <strong>matched pair</strong> is <strong>ticked</strong>, then the <em>auto-completion</em> occurs :</p>
<ul>
<li>
<p dir="auto"><strong>Whatever</strong> the character <strong>before</strong> the caret</p>
</li>
<li>
<p dir="auto">If the character <strong>after</strong> the caret belongs to the class <strong><code>[\t\r\n\x20]</code></strong></p>
</li>
<li>
<p dir="auto">Note that the <strong>opening</strong> and <strong>closing</strong> user boundaries, of any <strong>matched pair</strong>, must belong to the range <strong><code>[\x1E-\x7F]</code></strong> !</p>
</li>
</ul>
</li>
</ul>
<hr />
<p dir="auto">Now, it seems reasonable to allow the <strong>auto-completion</strong> feature <strong>regardless</strong> of the characters <strong>before</strong> and <strong>after</strong> the caret position ! If the <strong>present</strong> behavior bothers you, I advice you to create a <strong>new</strong> issue, following these <a href="https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report">recommendations</a></p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67773</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67773</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 10 Jul 2021 23:36:51 GMT</pubDate></item></channel></rss>