Code Editor Help Features
IntelliPrompt
IntelliPrompt displays a list of available words while you type code in the The Code Editor.
The IntelliPrompt list consists of the following parts:
-
The list itself (1)
-
The list filter (2)
-
The QuickInfo tooltip (3)
IntelliPrompt List Filtering
The suggested list is filtered by:
-
The context of the code (for example: Mantis)
-
The word typed (for example: pa). The filtering is updated while the word is typed
-
The list filter (2)
In this example, the list displays all the properties and methods of Mantis that start with "pa".
The list filter (2) lets you:
-
Include/exclude properties from the list
-
Include/exclude methods from the list
IntelliPrompt Validation
To validate a list entry:
-
Select the desired entry
-
Press Enter or Tab
The word entered is replaced by the selected list entry.
To cancel and close the list entry, press ESC.
QuickInfo Tooltip
The QuickInfo tooltip (3) is associated with the list selection. For a full description of its content, see QuickInfo.
QuickInfo
QuickInfo displays a Help tooltip when the mouse cursor is positioned on a statement in the code editor.
-
The statement syntax (1)
-
A brief description of how the statement is used (2)
-
A description of each parameter, including its type (3)
Snippets
Snippets are predefined code blocks that can be inserted into the code. For a complete list of snippets, see the Code Snippets Reference.
Insert a Snippet
A snippet can be inserted in a code editor in various ways:
-
Select the snippet from the IntelliPrompt list,
-
Click Select Snippet in the code editor context menu (see Commands Reference)
-
Type the snippet shortcut (see Code Snippets Reference) in the code editor and press Tab
-
Click Insert in the context menu of the Page Viewer tool window.
Complete a Snippet
Most of the snippets contain variable names that can be replaced with custom names after insertion.
In this mode:
-
Variable names are highlighted in yellow.
-
You can navigate from one variable name to another using the Tab key.
-
Once the cursor is positioned on a variable name, you can replace the default name with a custom name. All other occurrences of the name are then replaced automatically.
-
Press Enter or Esc to exit edit mode.
Drag & Drop
-
Project tree
-
Page viewer
Display a Page Capture
The Page Viewer tool window in the Editor perspective displays a page capture.
It consists of the following panels:
-
The breadcrumb (1)
-
The capture selector (2)
-
The captures toolbar (3)
-
The action toolbar (4)
-
The resize panel (5)
-
The display panel (6)
Breadcrumb
The breadcrumb (1) lets you select the application/page/item displayed.
-
To display an application mosaic:
-
Click the current application (2),
-
Or click the first selector (1) to display a list of all declared applications.
-
-
To display a page capture:
-
Click the current page (4)
-
Or click the second selector (3) to display a list of all of the declared pages of the current application (2)
-
-
To select an item, click the third selector (5) to display a list of the declared items of the current page (4)
Capture Selector
The capture selector (2) lets you select the capture that is currently displayed.
Capture Toolbar
The capture toolbar (3) lets you perform actions on the captures:
-
Make a new capture: adds a new capture (or replaces the current one)
-
Lock/unlock capture: useful for locking the selected capture during recognition
-
Delete capture: deletes the current capture
-
Edit capture properties:
-
Change the capture comment shown as a tooltip on the capture tab in the capture selector (1)
-
Select the capture(s) shown in the Application view
Action Toolbar
The action toolbar (4) lets you:
-
Copy the whole screen capture to the clipboard
-
Display an image selector
The image selector lets you:
-
Crop the screen capture
-
Copy part of the screen capture to the clipboard
You will find a full description of the image selector in The Explorer Perspective.
Resize Panel
The resize Panel (5) lets you change the zoom level of the screen capture:
-
Using the slider
-
Using the Size to fit button
to fill the display panel with the screen capture.
Display Panel
The display panel (6) displays the current screen capture.
In this view, only the non-technical recognized items (1,2,3,4,5) are clickable (see Set Item Parameters under Item Definition). They are highlighted with a green rectangle.
Once selected by clicking on it, this type of item is highlighted with an orange rectangle (1).
The breadcrumb selection is updated to reflect the item currently selected.
By right-clicking within the display panel, you can:
-
Edit the page: automatically navigate to the Explorer perspective to edit the current page or item
-
Copy the capture screen to the clipboard
-
Insert a snippet into the current code editor (see Snippets).