Toggle Comment Tool |
Toggle Comment Tool
This tool can toggle comment of selected code block, Delphi and C++Builder are supported. Its default shortcut is Ctrl+/ .
For code block, if the first line is not commented by '//', then the tool will add '//' to each line head even someone is commented. Otherwise, the tool will toggle comment each line according its status.
You may select code block before use this tool. If you select nothing, then current line will be processed.
The setting dialog is as below:
Move to Next Line after Toggle: Whether move cursor to next line after toggle comment. Default is not. This option can be used to toggle lines quickly one after one.
Comment Mode: Control the Comment Insert Mode.
Insert // to Line Head: Insert // to line head when comment code.
Insert // to Non-Space Line Head: Skip the spaces at line head and insert //. If no space or line is empty, // will be insert to line head.
Replace Space at Line Head using //: If there're 2 or more spaces at line head, replace the 2 spaces with //.
Links