<?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[Let Comment Flags Keep Aligned]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1693272836731-c71ff412-4d69-4d97-801b-8a43426a28de-image.png" alt="c71ff412-4d69-4d97-801b-8a43426a28de-image.png" class=" img-fluid img-markdown" /><br />
When I press ctrl+q to comments the code lines, the comments flag “rem” not to be placed at the front of the line. Can you make it keeping aligned.<br />
Just as follow:<br />
<img src="/assets/uploads/files/1693273110952-f42bbabd-d655-4337-9a7b-95a97ef8f278-image-resized.png" alt="f42bbabd-d655-4337-9a7b-95a97ef8f278-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24867/let-comment-flags-keep-aligned</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 14:23:06 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24867.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Aug 2023 01:37:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Let Comment Flags Keep Aligned on Tue, 29 Aug 2023 08:23:48 GMT]]></title><description><![CDATA[<p dir="auto">Here’s what I do for this.  Add this to the <code>&lt;Macros&gt;</code> section of your <code>shortcuts.xml</code> file:</p>
<pre><code>        &lt;Macro name="Col. 1 Remark" Ctrl="yes" Alt="yes" Shift="no" Key="75"&gt;
            &lt;Action type="0" message="2349" wParam="0" lParam="0" sParam="" /&gt;
            &lt;Action type="1" message="2170" wParam="0" lParam="0" sParam="REM " /&gt;
        &lt;/Macro&gt;
</code></pre>
<p dir="auto">Key <code>75</code> is the letter K, so this adds a Ctrl-Alt-K keystroke to your configuration (you said Ctrl-Q, but my solution isn’t a toggle like that keystroke; if you want Ctrl-Alt-Q, change <code>75</code> to <code>81</code>); message <code>2349</code> says to go to the beginning of the line (unconditionally, i.e. <em>not</em> just the beginning of the <em>text</em> on the line); and message <code>2170</code> says to type the given text - <code>REM</code> and a space (the forum won’t let me show the space in red here).  If you edit other types of files this way, you can change to the comment string for whatever language you’re using, and assign a different key for that one.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88951</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88951</guid><dc:creator><![CDATA[TBugReporter]]></dc:creator><pubDate>Tue, 29 Aug 2023 08:23:48 GMT</pubDate></item></channel></rss>