4

Any guidance on how to indent / turn on auto indent on google appscript with shortcuts would be appreciated!

New Appscript interface

TheMaster
  • 45,448
  • 6
  • 62
  • 85
Mishal
  • 450
  • 9
  • 27

2 Answers2

6

What I am using when indenting manually is Tab and Shift + Tab on single or multiple lines.

  • Tab for shifting it to the right.
  • Shift + Tab for shifting it to the left.

After {, when pressing Enter, it should auto indent itself to the right on the next line.

For Auto Formatting, press Ctrl + Shift + I to format the whole file.

Or right click in the editor then you can see the option below.

Right Click Options:

right click

Before:

before

After:

after

Fore more information, please see this Guide to the new interface.

NightEye
  • 10,634
  • 2
  • 5
  • 24
4

since it changed and since people might find this post and I need more than 25 characters :

It's ALT+SHIFT+F now (18/03/2022). You can obviously see this with the right click in the code.

buddemat
  • 4,552
  • 14
  • 29
  • 49