Applied Parameters: None
Summary
This command is used to comment out the selected line(s) of code in the current file.
Access
This command is accessed from the VHDL Editor, VHDL Testbench Editor, Verilog Editor, and Verilog Testbench Editor, by choosing the Tools » Comment Selected command from the main menus.
Use
First, ensure that the line or lines of code that you wish to comment out are selected in the document's main editing window.
After launching the command, comment characters (--) will be added to the beginning of each line involved in the selection.
Tips
- This is considered a legacy command for adding comments. The majority of Altium Designer's code-aware text-based editors do not have this command available. Rather, comment style and highlighting is managed as part of syntax configuration for that language type, through the Comments tab of the Syntax Editor dialog. Access to this dialog can be made from the Text Editors - Colors page of the Preferences dialog, by clicking the Edit Current Language Syntax button. Alternatively, click the
button on the editor's Utilities toolbar.