Authoring and editing E-Basic script within E-Studio has been enhanced with ScriptSense! ScriptSense is a code-completion and editing tool, very similar to Microsoft's Intellisense system. Both system provide automatic completion of commands and context-sesitive information about available coding elements.
ScriptSense also supports an extensive set of shortcut keys to access a variety of useful editing functions, including split-screen views of the editing window, creating and navigating to bookmarks, and commenting/uncommenting one or several lines of script!
ScriptSense is available when working within E-Studio while creating or editting E-Basic script on an InLine object or through the User Script tab. It is also available while working with the PackageFileEditor to create or edit PackageFiles. ScriptSense features either appear automatically in the editing window when using the appropriate context, or through activation by using various shortcut keys.
The specific ScriptSense features are outlined below.
The following ScriptSense features are enabled automatically when creating or editing E-Basic script:
Automatic Line Numbering
To split the current editing window in half vertically, move the cursor to the lower or upper left-hand corner of the User/Full/InLine Script window until it changes from the outlline of an arrow to the left-right splitter control and drag to the right.
To split the current editing window in half horizontally, move the cursor to the upper right-hand corner of the User/Full/InLine Script window until it changes from the outline of an arrow to the up-down splitter control and drag down.
ScriptSense also provides context-sensitive information, such as showing lists of the available constants and variables, displaying user-defined declaration statemnts, and automatically converting numeric data types. These context-specific editing aids which are enabled automatically are outlined below:
View a list of the available members that could correctly complete a partial text entry
View QuickInfo on the E-Basic Function/Command
A dropdown list of property, method, and data types appears after typing an object name followed by a period
A list of all attributes that have been defined appears automatically after tyiping. For example, after typing
c.SetAttrib " or
c.GetAttrib( the follow information appears:
When a compile or run-time error occurs, E-Studio will then highlight the line on which the error occurred. If the error occurs in an InLine object, then the InLine object that contains the error is opened and given focus, and the caret is placed on the offending line.
Declared Variable listing
When declaring variables using a Dimstatement, a list of all available data types appear in a dropdown list. Unique icons identify E-Objects, native data types, and keywords.
Smart Color information
When setting the color value via script, a dropdown list of color names, a solid block of the color itself, and the RGB values appears
A variety of standard editing functions can be activated by entering a simple shortcut key combination. These functions and their associated shortcut combinations are listed below.
|Select all text in the current view||Ctrl+A|
|Move caret to end of line||Ctrl+right arrow|
|Move caret to beginning of line||Ctrl+left arrow|
|Copy the selected text||Ctrl+C or Ctrl+Insert|
|Cut the selected text||Ctrl+X|
|Cut the text on the caret's current line||Shift+Delete|
|Paste the selected text to the caret position on the current line||Shift+Insert|
|Set the selected text to lower-case||Ctrl+U|
|Set the selected text to upper-case||Ctrl+Shift+U|
|Redo previous action||Ctrl+Y|
|Undo previous action||Ctrl+Z|
This article applies to:
For more information view the E-Prime Command Reference for specifics involving E-Basic (https://pstnet.com/ecr).