<?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[Autocomplete over multiple lines]]></title><description><![CDATA[<p dir="auto">Hey,</p>
<p dir="auto">Let’s say we have a file with this  :</p>
<pre><code>$Test1 = strstr('my text to search in at First', 'e'); 
$Test2 = strstr('my text to search in If it is possible', 'e'); 
$Test3 = strstr('my text to search in', 'e');
</code></pre>
<p dir="auto">I want to replace strstr by strpos, but i don’t want to use the simple search/replace, because I have other lines with the same function and i’ll have to keep them.<br />
I can select “strstr” on these lines with [ALT]+[MAJ] then start to write “strp”.</p>
<p dir="auto">If I do, and press [CTRL]+[ENTER], nothing happens.<br />
If I press [ENTER] only, it will create and go to next line.</p>
<p dir="auto">Would it be possible to get a shortcut doing it please ?<br />
Like [CTRL]+[MAJ]+[V] for instance</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22569/autocomplete-over-multiple-lines</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 12:03:23 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22569.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Feb 2022 15:39:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Autocomplete over multiple lines on Wed, 16 Feb 2022 13:01:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said in <a href="/post/74146">Autocomplete over multiple lines</a>:</p>
<blockquote>
<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24468">@romain-bocquiau</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@michael-vincent</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Peter</strong>, I think that the <strong><code>BetterMultiSelection</code></strong> plugin, of <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34">@dail</a>, allows and <strong>keeps</strong> the <strong><code>multi</code></strong> or <strong><code>column selection</code></strong> on <strong>several</strong> lines, together with the <strong><code>auto completion</code></strong> feature ! Just tested !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
</blockquote>
<p dir="auto">It was exactly what i needed. thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/74269</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74269</guid><dc:creator><![CDATA[Romain Bocquiau]]></dc:creator><pubDate>Wed, 16 Feb 2022 13:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to Autocomplete over multiple lines on Mon, 14 Feb 2022 16:26:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24468">@romain-bocquiau</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@michael-vincent</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Peter</strong>, I think that the <strong><code>BetterMultiSelection</code></strong> plugin, of <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/34">@dail</a>, allows and <strong>keeps</strong> the <strong><code>multi</code></strong> or <strong><code>column selection</code></strong> on <strong>several</strong> lines, together with the <strong><code>auto completion</code></strong> feature ! Just tested !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/74146</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74146</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 14 Feb 2022 16:26:09 GMT</pubDate></item><item><title><![CDATA[Reply to Autocomplete over multiple lines on Mon, 14 Feb 2022 16:04:53 GMT]]></title><description><![CDATA[<p dir="auto">Interesting.  I interpreted your request as the auto-complete wasn’t working right.  The others interpreted your request as wanting a way to multi-select the text so you can type it all.</p>
<p dir="auto">Apparently, your phrasing can be interpreted in multiple ways.</p>
<p dir="auto">If you wanted one or the other, hopefully our answers are good enough.  If you really want both, please note that auto-completion will not work right with multi-select or column select (it will pop up, but the auto-completed text will only show up on one occurrence of the multi-or-column select).  So if you’ve got multi-select or column-select, type the whole word rather than relying on auto-completion.</p>
<p dir="auto">Good luck.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/74145</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74145</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 14 Feb 2022 16:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Autocomplete over multiple lines on Mon, 14 Feb 2022 16:05:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24468">@romain-bocquiau</a></p>
<p dir="auto">In v8.2 and earlier, the auto-completion was always completed by typing either <code>ENTER</code> or <code>TAB</code>, and there was no way to make either of those keys work as actual text input, so you had to type <code>TAB TAB</code> or <code>ENTER ENTER</code> if you wanted the next character to be inserted as a literal <code>TAB</code> or <code>ENTER</code> (which I often wanted, so I have had to have auto-completion feature disabled for years, because I was more likely to want a literal <code>TAB</code> or <code>ENTER</code> than to want the auto-completed text by the time I hit <code>TAB</code> or <code>ENTER</code>)</p>
<p dir="auto"><code>Ctrl+Enter</code> never was the auto-complete key, so I’m not sure why you (and others) have started saying that it should work.</p>
<p dir="auto">In v8.2.1 and v8.3, the new feature was added to disable <code>ENTER</code> and/or <code>TAB</code> for the completion-selection key; this setting could be changed using <strong>Settings &gt; Preferences &gt; Auto-Completion</strong> <code>☑ TAB</code> and <code>☐ ENTER</code>, and was mentioned in the release notes (the change.log that opened when you installed or upgraded to v8.2.1).  This change was necessary and good, because it allows users to pick which of the completion-keys will select the chosen auto-complete text (and allowed me to finally start using auto-completion, after years of not being able to).</p>
<p dir="auto">Unfortunately, by default it was set to <code>☑ TAB</code> (on) and <code>☐ ENTER</code> (off), and users rebelled at the change in behavior.  Due to the rebellion, the default was changed back to both being enabled <em>by default</em> on v8.3.1-RC1, but can still be changed in the GUI settings.</p>
<p dir="auto">But if you have v8.2.1 or v8.3 (or if you ever ran them, so they wrote the config file), the “default” will not override the saved setting (because the “default” has no way of knowing whether you intentionally set your <code>config.xml</code> to <code>☑ TAB</code> (on) and <code>☐ ENTER</code> (off), or whether that just happened to be the default that you don’t want).  If you have installed one of those intermediate versions, you will have to go to <strong>Settings &gt; Preferences &gt; Auto-Completion</strong> and enable <code>☑ ENTER</code> to get ENTER as the completion key.  Or you can choose to learn to use TAB as the completion key, which is the more common completion key across Windows products (for example, it’s what’s used in MS Office products).  (Please note that updating from v8.2.1 or from v8.3 to v8.3.1 will <em>not</em> change the configuration if you ever ran in v8.2.1 or v8.3 … you will <em>have</em> to change the setting yourself).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/74144</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74144</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 14 Feb 2022 16:05:36 GMT</pubDate></item><item><title><![CDATA[Reply to Autocomplete over multiple lines on Mon, 14 Feb 2022 15:52:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@michael-vincent</a></p>
<p dir="auto">Maybe more complete, for PythonScript?:</p>
<pre><code>from Npp import *
editor.autoCSetMulti(MULTIAUTOCOMPLETE.EACH)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/74142</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74142</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 14 Feb 2022 15:52:23 GMT</pubDate></item><item><title><![CDATA[Reply to Autocomplete over multiple lines on Mon, 14 Feb 2022 15:45:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/24468">@romain-bocquiau</a> said in <a href="/post/74140">Autocomplete over multiple lines</a>:</p>
<blockquote>
<p dir="auto">I want to replace strstr by strpos, but i don’t want to use the simple search/replace, because I have other lines with the same function and i’ll have to keep them.<br />
I can select “strstr” on these lines with [ALT]+[MAJ] then start to write “strp”.<br />
If I do, and press [CTRL]+[ENTER], nothing happens.<br />
If I press [ENTER] only, it will create and go to next line.<br />
Would it be possible to get a shortcut doing it please ?</p>
</blockquote>
<p dir="auto">This is possible, you just need to set <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_AUTOCSETMULTI" rel="nofollow ugc">SCI_AUTOCSETMULTI</a> to <code>SC_MULTIAUTOC_EACH </code>.  You can do this with the PythonScript plugin at startup:</p>
<pre><code class="language-Python">    ed.autoCSetMulti(MULTIAUTOCOMPLETE.EACH)
</code></pre>
<p dir="auto">or any other of your favorite scripting plugins.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/74141</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/74141</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Mon, 14 Feb 2022 15:45:55 GMT</pubDate></item></channel></rss>