Code Editor - Toolbar

Applies to TestComplete 12.60, last modified on September 17, 2018

The Code Editor’s toolbar contains some useful tools for managing the script code of the unit opened in the Code Editor:

The toolbar provides useful capabilities for editing and using script code:

  • The  Run Current Routine button lets you easily execute the current routine.

  • The  Increase Indent and  Decrease Indent buttons let you change the indent of the current line or selected block of script code.

  • The  Mark as a Comment button lets you quickly comment the selected text by inserting comment marks specific to the used scripting language into the beginning of each selected line. And if you want to uncomment out the selected lines of code, you can click the  Remove Comment Marks button. If there are no selected lines of code, clicking each of these buttons affects only the current line of code.

  • The  Hide Selected Lines and  Stop Hiding Current Block buttons give you the ability to collapse some blocks of code and expand them. For more information, see Outlining.

  • The  Navigate Back and  Navigate Forward buttons let you switch between previous or more recent locations of the insertion point.

    In addition, you can go to the declaration of any script routine within the current script unit by selecting its name from the list on the Code Editor toolbar. In Python scripts, you can also go to the declaration of classes and their methods. For more information, see Code Navigation.

  • You can create various checkpoints by selecting the desired kind of a checkpoint from the drop-down list. To display this list, click the down arrow on the right of the Checkpoint button. This button is used to quickly create a checkpoint of the kind that was used last. When you create any checkpoint, the button’s pictogram is changed according to its kind. By default, the button has the   pictogram that corresponds to the Checkpoint Wizard. You can click the button and use this wizard to determine which kind of a checkpoint you need exactly and then create it.

  • The  Panel Options button provides you with access to the Code Editor options.

See Also

Code Editor
Code Editor Window - Overview

Highlight search results