Main Menu Reference |
The Script Editor main menu bar is the horizontal bar across the top of the editor. It provides options that help you configure your editor settings and create your scripts.
Use the following File menu options to add script libraries and to manage a selected script file:
Import: Opens the Open File dialog so that you can browse for an existing script library file that you want to import into the Script Editor.
Export: Opens the Save File dialog so that you can save the open script file to another location on your computer or network.
Print: Opens the Print dialog.
Print Preview: Displays a preview of how the selected object is printed.
Save and Exit: Saves the script in the Editor pane to the Value input box for the Source of the Power Shell Command action and closes the Script Editor.
Exit without Saving: Closes the Script Editor without saving your changes to the Power Shell Command action.
Use the following Edit menu options to modify the scripts in the Editor pane:
Undo: Undoes the previous action.
Redo: Redoes the previously undone action.
Cut: Deletes the selected text and copies it to the Clipboard.
Copy: Copies the selected text to the Clipboard. This action does not delete the selected text.
Paste: Inserts the text from the Clipboard into the Editor pane.
Select All: Selects all of the text in the Editor pane.
Advanced:
Increase Indent: Increases the indentation level of the selected text.
Decrease Indent: Decreases the indentation level of the selected text.
Comment Lines: Converts the line of text into a comment by adding the PowerShell comment symbol to the beginning of the line of text.
Uncomment Lines: Removes the comment symbol from the beginning of the text so that the line of text is no longer a comment.
Insert Symbol: Opens the Insert Symbols or Special Characters dialog.
Use the following Search menu options to locate and/or replace a specified term or line in your custom script:
Find: Opens the Find and Replace dialog on the Find tab.
Find Next: Finds the next instance of the text that you entered in the Find and Replace dialog.
Find Previous: Finds the previous instance of the text that you entered in the Find and Replace dialog.
Replace: Opens the Find and Replace dialog on the Replace tab.
Go To Line: Opens the Go To Line dialog, where you can specify the line number that you want the cursor to jump to.
Use the following View menu options to customize the appearance of the Script Editor:
Show Line Numbers: Displays line numbers for the lines of text in the Editor pane.
View Options: Opens the View Options dialog, where you can enable indentation guides and word wrap and specify settings such as tab size and font type, size, and style.
Toolbox:
Script Assistant: Shows or hides the Script Assistant pane.
Use the following options to access help information about how to use the PowerShell Script Editor and to access Microsoft's PowerShell documentation:
BarTender Help: Opens the Script Editor help system.
PowerShell Language Reference: Opens the PowerShell Documentation page on the Microsoft website.