Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

The figure below shows the ESL script editor window. Each script is opened in its own tab.

Image RemovedImage Added


1Toolbar.
2The current action of the debugging process.3

The breakpoint is set when debugging a script .

43The source text of the script - individual actions that form the script.
54
The part of the script editor that contains the following displaying:
  • Compile - errors that occurred during the compilation (syntactic, semantic check),
  • Debug - debugging logs,
  • Notations - comments existing in the script,
  • Watch - values of local variables
  • Evaluate - expression evaluation
To resize this part and the area for editing the script text point the mouse cursor to the margin between the parts and when the mouse cursor changes its shape to , then press the left mouse button and drag the border (left mouse button has to be still pressed) to the desired position.
65Status bar
6Minimap for fast navigation in code

Notes:

When the script editor is closed all the tabs will be closed and the window will hide.

...

  • Automatic color differentiation of keywords: .
  • Automatic color differentiation of texts: correctly written: , incorrectly written: Image Added.
  • Semantic coloring - different colors for local, global, predefined and scheme variables, different colors for objects, procedure names etc...
  • Static code analysis
  • After a successful Syntax check:
    • Typing the symbol '^' after the name of an object of Structured variable type or after the name of a local variable of RECORD type shows the list of all structure columns with the column number and description. The columns are listed in alphabetical order.
    • Pointing the mouse cursor to a local variable, or a structured variable item displays information about its type and the place where it is declared (in the debugging mode, the value of the variable is shown).
  • After an unsuccessful Syntax check or Compilation, double-clicking an error from the lists of errors (5) moves the mouse cursor to where the error occurred. Another possibility for navigation between errors or warnings is by clicking on an icon in the upper right corner of the editor, which is shown when there are some errors or warnings. After clicking on this icon, a line with an error is shown with an error description. Every other click on the icon shows the next error/warning.

...

  • Basic keyboard shortcuts:

    ShortcutAction
    CTRL+F1Display the complete list of actions together with keyboard shortcuts
    F1Display editor help, if the cursor is over the function name, help for the function is displayed


    CTRL+SPACEShow suggestions
    CTRL+SHIFT+SPACEShow quick info for procedure and function parameters


    CTRL+K CTRL+CAdd a comment to the current line
    CTRL+K CTRL+UDelete a comment from the current line
    CTRL+/Add/remove a comment from the current line
    SHIFT+ALT+AAdd/remove a comment from the current selection


    CTRL+F2Rename all occurrences
    F2Rename a symbol within its validity


    CTRL+FSearch in the script
    ENTERFind another occurrence
    SHIFT+ENTERFind the previous occurrence


    SHIFT+ALT+FFormat the entire script
    CTRL+K CTRL+FFormat the selected area


    CTRL+F12Go to definition
    CTRL+GGo to line
    ALT+F8Go to the next problem
    SHIFT+ALT+F8Go to the previous problem
    SHIFT+F12Go to references
    CTRL+SHIFT+OGo to symbol - displays the option to go to functions, variables, parameters defined in the script


    CTRL+SHIFT+F8Check script syntax
    CTRL+F8Compile the script
    CTRL+SCompile and save the script
    CTRL+1Opens a list of D2000 system objects.
    CTRL+2Opens a list of predefined constants.
    CTRL+3Opens a list of functions.
    CTRL+4Opens a list of actions.
    CTRL+5Opens a list of local variables.
    CTRL+6Opens a list of value attributes of an object or local variable.F2
    Save the script to the fileF8Switch to debug mode


Popup menu

...

  • Go to Definition - cursor is automatically moved to the declaration of the identifier. When using "Go to definition" on the remote procedure (RPC/PUBLIC), the ESL editor automatically opens the script, which contains the definition of procedure, and moves the cursor on the definition.
  • Go to References (SHIFT + F12) - a nested editor is displayed with the option to switch between the individual references of the local variable/procedure.
  • Go to Symbol... (CTRL + SHIFT + O) - a selection box with filtering of all symbols (local variables, procedure parameters, procedures) is displayed, after selecting the symbol and pressing the ENTER key the cursor is moved to the symbol definition.
  • Peek - here are two options:
    • Peek Definition (ALT + F12) - the nested editor is displayed at the position of the local variable/procedure definition.
    • Peek References - a nested editor is displayed with a reference to a local variable/procedure, with a list of individual references in the right part.
  • Rename Symbol (F2) - renames the name of the local and global variable defined in the script within its scope.
  • Change All Occurrences (CTRL + F2) - this allows replacing all occurrences of the specified text within the script.
  • Format Document (SHIFT + ALT + F) - adjusts the formatting of the document, applying the currently set indentation.
  • Editor settings - displays the ESL editor settings dialog (font and colors).
  • Show All Instances - shows the list of all running instances of the edited ESL script.
  • Cut (CTRL + X) - copies the selected content to the clipboard and removes it from the editor,
  • Copy (CTRL + C) - copies the selected content to the clipboard,
  • Paste (CTRL + V) - pastes the contents of the clipboard.
  • Command Palette (CTRL + F1) - displays all available actions in the editor

Editor settings

General settings

Allows user personalize editor

...

by modifying various settings

Static analysis

Allow user enable/disable different types of code validations and set their severity. Severity affects how error is displayed in editor

Color settings

...

For better orientation in the ESL script, the editor uses a different coloring scheme for each type of the individual text tokens. Default coloring parameters can be modified using the ESL editor settings dialog.There are three editor color themes - dark, light and high-contrast theme.

Image AddedImage Removed

...

ESL Editor within String detects the references to the dictionary. If some reference to a dictionary (key), which has not been defined yet, is identified, it will be colored as an Error (see the dialog above).

...