Use the following steps to edit text in the Script Pane. You can copy, cut, paste, find, and replace text. You can also undo and redo the last action you just performed. The keyboard shortcuts for performing these actions are the same as those used for all Windows applications.
To enter text in the Script Pane
- Move the cursor to the Script Pane by clicking anywhere in the Script Pane, or by clicking Go to Script Pane in the View menu.
- Create a script. Syntax coloring and tab completion make this a richer experience in Windows PowerShell ISE.
- See How to Use Tab Completion in the Script Pane and the Command Pane for details about using the tab completion feature to help in typing.
To find text in the Script Pane
- To find text anywhere, on the Edit menu, click Find in Script.
- To find text after the cursor, on the Edit menu, click Find Next in Script.
- To find text before the cursor, on the Edit menu, click Find Previous in Script.
To go to a particular line of text in the Script Pane
- In the Script Pane, on the Edit menu, click Go to Line.
- Enter a line number.
To copy text in the Script Pane
- In the Script Pane, select the text that you want to copy.
- On the toolbar, click Copy, or on the Edit menu, click Copy.
Note: The shortcut CTRL+C can be used to copy selected text when a selection has been made. The shortcut CTRL+C can be used to stop the execution of a command when no text has been selected.
To cut text in the Script Pane
- In the Script Pane, select the text that you want to cut.
- On the toolbar, click Cut, or on the Edit menu, click Cut.
To paste text into the Script Pane
On the toolbar, click Paste, or on the Edit menu, click Paste.
To undo an action in the Script Pane
On the toolbar, click Undo, or on the Edit menu, click Undo.
To redo an action in the Script Pane
On the toolbar, click Redo, or on the Edit menu, click Redo.
To replace text in the Script Pane
On the Edit menu, click Replace in Script.
See Also