Tools - Comment

This tool is used to create comments in the source code of various languages supported in Spider.

You launch the Table Row window from the Main Menu / Tools / Text / Insert Comment, as well as from the Frequently Used toolbar. The default keyboard shortcut for the tool is Shift+Ctrl+K.

Entering a comment

The tool's window consists of a text box for entering a comment and several icons with which you can insert frequently used content into the comment:

- creates a comment based on the document information file

- allows you to select a project, and on creates a comment based on information about that project

- inserts the current date and time into a comment

- inserts the name of the current program user into the comments

The tool automatically recognizes the current language and inserts the appropriate comment characters. However, it is possible that several variants of code commenting are available (e.g. in PHP language you can insert // at the beginning of each line, or cover the whole text with /* */ characters). Therefore, it is possible to choose the way of inserting a comment yourself. To do this, select the appropriate item of the submenu available by clicking the arrow to the right of the OK button.

If some text was selected in the editor when the tool was launched, it will automatically be used as comment text. In such a situation, if the text has not yet been changed, just press the Enter button so that this text will be covered in the editor with the corresponding comment marks.

Related topics

To top