Google Apps Script editor keyboard shortcuts

Last updated: February 09, 2025

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

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)

DISCLAIMER: This content is provided for educational purposes only. All code, templates, and information should be thoroughly reviewed and tested before use. Use at your own risk. Full Terms of Service apply.

Small Scripts, Big Impact

Join 1,500+ professionals who are supercharging their productivity with Google Sheets automation

Exclusive Google Sheets automation tutorials and hands-on exercises
Ready-to-use scripts and templates that transform hours of manual work into seconds
Email updates with new automation tips and time-saving workflows

By subscribing, you agree to our Privacy Policy and Terms of Service