How to indent code on new google appscript interface?

眉间皱痕 提交于 2021-01-27 21:33:00

问题


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


回答1:


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:

Before:

After:

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



来源:https://stackoverflow.com/questions/65450166/how-to-indent-code-on-new-google-appscript-interface

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!