This article applies to:
Authoring and editing E-Basic script within E-Studio has been enhanced with ScriptSense. ScriptSense is a code-completion and editing tool, similar to Microsoft's Intellisense system. Both systems provide automatic completion of commands and context-sesitive information about available coding elements.
ScriptSense is available when working within E-Studio while creating or editting E-Basic InLine or User Script. It is also available while working with the PackageFile Editor 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.
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.
All of the specific ScriptSense features are outlined below.
ScriptSense 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.
|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|
|Opens the member listing||Ctrl+Space|
The following ScriptSense features are enabled automatically when creating or editing E-Basic script:
Automatic Line Numbering
Lines are numbered automatically in script windows as script is being created, edited, or viewed.
NOTE: Automatic line numbering can be turned off in the Tools > Options > Script window. The "Show Line Numbers" option needs to be unchecked. E-Studio will need to be restarted for the changes to take effect.
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.
View a list of the available members that could correctly complete a partial text entry
The list of members appears automatically after certain script is entered (e.g., a period). However, the list of members window can be manually shown by pressing Ctrl + Space.
NOTE: Ctrl needs to be pressed before the Space key.
View QuickInfo on an E-Basic Function/Command
QuickInfo is available for any E-Basic Function or Command. The QuickInfo appears whenever the mouse cursor hovers over the piece of script.
A list of all attributes that have been defined appears automatically after typing. For example, after typing c.SetAttrib " or c.GetAttrib the follow information appears:
When a compile or runtime error occurs, E-Studio highlights 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, given focus, and the caret is placed on the offending line.
Declared Variable listing
When declaring variables using a Dim statement, 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.
See Also:INFO: ScriptSense Options 
For more information view the E-Prime Command Reference for specifics involving E-Basic (https://pstnet.com/ecr).