1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 14:15:23 +02:00

Bug 449605: Comment Code Aids doesn't refer to correct location for

Templates
This commit is contained in:
Andrew Gvozdev 2015-01-07 17:03:15 -05:00
parent 105fa978e7
commit 322e0de5ca

View file

@ -32,7 +32,9 @@ already commented out, are not affected when you comment and uncomment code.</p>
<h2>Multiline comment</h2>
<p>You can use the Content Assist feature to insert a multi-line comment before a function.
Type <span class="typewriter">com+Ctrl+Space</span>, and the following code is entered at the cursor location:
In the C++ editor, type <span class="typewriter">com</span> then press <strong>Ctrl+Space</strong>.
Select <span class="typewriter">default multiline comment</span> template and press <strong>Enter</strong>.
The following code is entered at the cursor location:
<br><pre>
/*
* author userid
@ -42,7 +44,7 @@ Type <span class="typewriter">com+Ctrl+Space</span>, and the following code is e
*/
</pre>
To change the default comment click <strong>Window > Preferences > C > Templates</strong>. For more information see the
To change the default comment click <strong>Window > Preferences > C/C++ > Code Style > Code Templates</strong>. For more information see the
<a href="cdt_c_content_assist.htm">Content Assist</a> section.
<p><img src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">