如何在新的Google Appscript界面​​上缩进代码? [英] How to indent code on new google appscript interface?

查看:154
本文介绍了如何在新的Google Appscript界面​​上缩进代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何有关如何使用快捷方式在Google appscript上缩进/启用自动缩进的指导都将不胜感激!

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

推荐答案

手动缩进时使用的是 Tab Shift + Tab 在单行或多行上.

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

  • Tab 将其向右移动.
  • Shift + Tab 将其向左移动.
  • Tab for shifting it to the right.
  • Shift + Tab for shifting it to the left.

{之后,按 Enter 时,它将自动在下一行的右侧自动缩进.

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

对于自动格式化,请按 Ctrl + Shift + I 格式化整个文件.

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.

右键单击选项:

之前:

之后:

有关更多信息,请参见此指南到新界面.

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

这篇关于如何在新的Google Appscript界面​​上缩进代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆