Previous Topic

Next Topic

Book Contents

Book Index

Script Editor - Context Menu

Accredo > Script > Script Editor > Right-click - OR - (Shift+F10)

Right-click or press Shift+F10 in the Script Editor or Code Editor window to access the Context Menu.

 

Goto Line (Ctrl+G)

Prompts for the line (and column) to go to. Enter the line to go to, then the character to go to in brackets. For example 1(10) will go to Line: 1, Char: 10.

 

Procedure List (Ctrl+E)

Opens the Procedure List.

 

Use Syntax Highlighting

Highlight text in different formats based on the category of the text's purpose in the script or code.

 

Show Line Numbers

Display line numbers on the left of the window.

Find Text (Ctrl+F)

Opens the Find window, to allow you to search for text.

Find Again (F3)

Repeat the previous Find command.

 

Replace Text (Ctrl+H)

Opens the Replace window, to allow you to replace text.

 

Comment Text (Ctrl+')

Inserts a comment character (') at the start of the line or selected lines. Lines are set to comment lines.

 

Uncomment Text (Shift+Ctrl+')

Removes the comment character (') from the start of the line or selected lines. Lines are no longer set as comment lines.

HTMLIncreaseIndent

Indent Text (Shift+Ctrl+I)

Indent the line or selected lines.

HTMLDescreaseIndent

Unindent Text (Shift+Ctrl+U)

Unindent the line or selected lines.

 

Help Function

If the cursor is on a MaxBasic function name, this option is made available. Open the Help for the selected Function.

 

Select All (Ctrl+A)

Select all text.

 

Add Snippet (Ctrl+O)

Add the selected text to the Snippet Manager. Opens the Snippet Code Editor.

 

Open Source (Ctrl+Enter)

Available for functions Imports, CreateCustomForm, PlayScript, EDIImport, EDIExport, CreateSalesAnalysisReport, CreatePurchaseAnalysisReport and CreateJobAnalysisReport.

For Imports, with the cursor in the file name, this will open the file in a new script editor or form designer as relevant.

For example, for Imports("filename.pfs"), this will open the filename in a new script editor.

For example, for CreateCustomForm("testform.pfd"), this will open the form in Form Designer.

 

Set Bookmark (Ctrl+Shift +number)

You can add bookmarks to your script. Select the number from the menu, or press Ctrl+Shift+(number), with a number from 0 to 9. For example, press Ctrl+Shift+1 to set Bookmark 1.

You can return to the bookmark by pressing Ctrl+(number. To clear a bookmark, go to the bookmark, then press Ctrl+Shift+(number) again.

Note: You cannot use the number pad for bookmarks, as other accelerator key functions use the number pad.

Note: Windows sometimes sets Ctrl+Shift+0 as a shortcut for switching between input languages. If this has been assigned, it will need to be cleared from the Control Panel for the Ctrl+Shift+0 bookmark shortcut to work.

 

Goto Bookmark (Ctrl+number)

Available when a bookmark has been set. Select the bookmark from the menu, or press Ctrl+(number) to return to the numbered bookmark.

 

Goto Declaration (F12)

With focus on a user function name will locate to the function declaration. Note: The function being navigated to must be in the same script file.

 

Format Code

Available when no text is selected. Apply auto formatting - blank line between functions/subroutines, two space indentation, line continuation indentation and function / statement capitalisation.

Undo (Ctrl+Z)

Undo the last single keystroke or editing operation.

EditRedo

Redo (Ctrl+Y)

Re-do the last single keystroke or editing operation.

Cut (Ctrl+X)

Cut selected text or figures.

Copy (Ctrl+C)

Copy selected text or figures.

Paste (Ctrl+V)

Paste previously cut or copied text or figures.