Google Apps Script editor keyboard shortcuts
I've compiled a comprehensive list of keyboard shortcuts for the Google Apps Script editor to help you become more productive while using it.
1. Save your script
To save your script, use the following keyboard shortcut:
CTRL + S (
On a Mac you can also use ⌘ S
)
2. Run your script
To run your script, use the following keyboard shortcut:
CTRL + R
When you run your script, the function that is selected in the toolbar will be run. The screenshot below shows the function example1 selected. This is the function that will be run.
3. View logs
To view logs, use the following keyboard shortcut:
CTRL + ENTER
(On a Mac you can also use ⌘ ENTER
)
4. Toggle comments
To toggle comments, first select the lines you want to comment or uncomment and then use the following keyboard shortcut:
CTRL + /
(On a Mac it is ⌘ /
)
5. Indent your code
To indent your code, use the following keyboard shortcut:
Shift + Alt + F
(On a Mac it is Shift + Option + F)
6. Select all
To select all, use the following keyboard shortcut:
CTRL + A
(On a Mac it is ⌘ A
)
7. Bring up the auto-complete dialog
To auto-complete core functionality such as classes and methods in Apps Script, use the following keyboard shortcut (note: in Apps Script, this feature is called content assist):
CTRL + SPACE
8. Undo change
To undo your most recent change, use the following keyboard shortcut:
CTRL + Z
(On a Mac it is ⌘ Z
)
9. Redo change
To redo your most recent change, use the following keyboard shortcut:
CTRL + Y
(On a Mac it is ⌘ Y
)
10. Find and replace
To find and replace text in your code, use the following keyboard shortcut:
CTRL + F
(On a Mac it is ⌘ F
)