<p>It would be nice to have automatic continuation of single-line comments, as long as such a comment is not inline (that is, there is no code before the comment).</p>
<p>For example, pressing Return after this comment (C++, <code>|</code> is caret):</p>
<pre><code>// First line|
</code></pre>
<p>Will result in:</p>
<pre><code>// First line
// |
</code></pre>
<p>One of the reasons why it's useful is writing Doxygen documentation. Along with C-style multiline comments, Doxygen supports C++-style comments in the following two forms:</p>
<pre><code>///
/// Variant 1
///

//!
//! Variant 2
//!
</code></pre>
<p>Currently, writing such comments is extremely tedious, not only because you have to type <code>///</code> or <code>//!</code> every time, but also because the indentation within the comment is lost. Detecting such special cases<br>
(<code>///</code> and <code>//!</code>) is easy to implement as long as basic form (<code>//</code>) is supported.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2084">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJzllCG4v6TY83l-uHHAYKOD7qCn3ks5vKzq_gaJpZM4amCzf">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ_IcvMWEKPfRaQc-ZDs5aAN8cfA_ks5vKzq_gaJpZM4amCzf.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Add support for automatic continuation of single-line comments (#2084)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2084"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2084",
"url": "https://github.com/geany/geany/issues/2084",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>