Altium Designer Documentation

CommentSelected

Created: June 2, 2017 | Updated: June 2, 2017

Parent page: TextEdit Commands

The following pre-packaged resource, derived from this base command, is available:


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

  1. 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.

 

Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

Contact Us

Contact our corporate or local offices directly.

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
200 characters remaining
You are reporting an issue with the following selected text
and/or image within the active document: