diff --git a/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_comments.htm b/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_comments.htm index a2ed2d9bf13..642369755c8 100644 --- a/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_comments.htm +++ b/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_comments.htm @@ -14,23 +14,31 @@
Comments are lines in a source file that have been marked to be ignored by the compiler. Two styles of comments are supported by current C/C++ compilers:
You can quickly comment out one or more lines of code by inserting the leading characters // at the beginning of the line. To do so, select the line (or lines) of code you want to comment out and press CTRL+/ (slash).
-To uncomment select the line (or lines) of code, and press CTRL+\ -(backslash). +
To uncomment select the line (or lines) of code, and press CTRL+/ +(slash) again.
Tip: The characters /* */ on lines that are -already commented out, are not affected when you comment and uncomment code.
+already commented out, are not affected when you comment and uncomment code using line comment. -You can comment out selected block of code with C style comment /* */. To do so, select +the block of code you want to comment out and press CTRL+Shift+/ (slash).
+ +To uncomment select the code inside commented out block, and press CTRL+SHIFT+\ (backslash). + + +
You can use the Content Assist feature to insert a multi-line comment before a function. In the C++ editor, type com then press Ctrl+Space. Select default multiline comment template and press Enter.