Script Editor Keyboard Shortcuts

When using keyboard shortcuts make sure the editor window has focus.

Action Shortcut
Open the Script Editor Scripting | Open Script Editor (CTRL + F11)
Select All CTRL + A
To create a new tab CTRL + T
To close a tab CTRL + W
  Alternatively, click on the tab header with the mouse middle button.
To cycle between tabs CTRL + TAB
  This only applies to the 2 most recently used tabs.
Delete selection and copy to clipboard CTRL + X
Copy selection to clipboard CTRL + C
  You can also copy the contents of the Script Editor Help Pane to the clipboard
Paste clipboard to current location CTRL + V
Find CTRL + F
  A search can be case-sensitive and you can search in an Up or Down direction.
Find and Replace CTRL H
   
Comment CTRL + 3
Uncomment CTRL + 2
  If 1 line or no lines are selected, a # comment signifier is added/removed at the start of the current line.
  If multiple lines are selected, a # comment signifier is added/removed at the start of each line.
  Note: You must use the number keys on the main keyboard (not the keypad).
Undo CTRL + Z
Redo CTRL + Y
Save changes CTRL + S
  Click the Save As button on the editor toolbar to save your changes as a new script.
Print CTRL + P
Run the current script F5

Editor Navigation Keys

Use the following shortcuts to navigate the editor window:

Action Shortcut
Move to start of line/document HOME/CTRL + HOME
  If there are leading spaces, pressing HOME once will move the cursor to the first non-whitespace character on the line. Pressing HOME again will move the cursor to the start of the line. Repeated HOME key presses will toggle this behaviour.
Move to end of line/document END/CTRL + END
Scroll up page by page PAGE UP
Scroll down page by page PAGE DOWN
  A "page" is equivalent to the height of the editor window.

Keyboard Shortcuts