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 it is ⌘ S)

Screenshot of the Google Apps Script editor.

2. Run your script

To run your script, use the following keyboard shortcut:

CTRL + R (On a Mac it is ⌘ R)

Screenshot of the Google Apps Script editor.

3. View logs

To view logs, use the following keyboard shortcut:

CTRL + ENTER (On a Mac it is ⌘ ENTER)

Screenshot of the Logs viewer dialog.

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 ⌘ /)

Screenshot of the Google Apps Script editor.

5. Indent your code

To indent your code, use the following keyboard shortcut if auto-indenting is ON:

TAB

Use this other keyboard shortcut if auto-indenting is OFF:

SHIFT + TAB

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 (On a Mac it is ⌘ SPACE)

Screenshot of the Google Apps Script editor.

To auto-complete the names of variables or functions that you've defined, use the following keyboard shortcut (note: this shortcut only works after you type at least one letter):

ALT + /

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)

Stay up to date

Follow me via email to receive actionable tips and other exclusive content. I'll also send you notifications when I publish new content.
By signing up you agree to the Privacy Policy & Terms.

Have feedback for me?

I'd appreciate any feedback you can give me regarding this post.

Was it useful? Are there any errors or was something confusing? Would you like me to write a post about a related topic? Any other feedback is also welcome. Thank you so much!