Code Editor - Context Menu

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

The Code Explorer context menu provides commands for managing, running and debugging scripts displayed in the editor. To invoke the context menu, right-click within the editor. The available commands are:

 Run Current Routine Runs the routine whose body was right-clicked to invoke the context menu.
 Set Next Statement Sets an execution point while you are debugging script code.
Go to Error Jumps to the first syntax error in the unit currently opened.
Go to Declaration Navigates to the declaration of the routine, variable, constant, or name mapping object whose name was right-clicked. The routine, variable, or constant declaration will be displayed in the Code Editor, whereas the name mapping object declaration will be displayed in the Name Mapping Editor.
Code Completion Opens the Code Completion window.
Code Templates Inserts the code template to your script code.
Cut, Copy, Paste Lets you perform standard editing operations against the script code.
Debug Contains the submenu that provides you with commands for debugging script code.
Toggle Breakpoint
Sets a breakpoint on the current line or removes it from that line. You cannot set a breakpoint on lines containing non-executable code such as comments, declaration statements or blank lines.
 Evaluate
Opens the Evaluate dialog.
Run to Cursor
Runs the test at full speed to the location of the cursor in the test editor and stops there if this point is within the test execution. Otherwise, runs at full speed to the end of the test. For more information, see Stepping Through Test.
Add Watch
Adds an expression to the Watch List panel.
Outlining Contains the submenu that provides you with commands for outlining. For more information, see Outlining
Toggle Bookmarks Bookmarks the right-clicked line with the bookmark number selected from the submenu. For more information, see Bookmarks.
Goto Bookmarks Returns to a bookmark with the bookmark number selected from the submenu. For more information, see Bookmarks.
Panel Options Opens the Editor Options dialog.

See Also

Code Editor
Code Editor Window - Overview

Highlight search results