研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >代码生成器 >CodeGenerator缩进
CodeGenerator.INDENT 属性
缩进方法。默认为两个空格,但语言生成器可能会覆盖此设置,以增加缩进或改用制表符。
Signature:
INDENT: string;
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["`CodeGenerator.INDENT` controls the indentation style used in generated code."],["The default indentation is two spaces, but language generators can customize it to use tabs or a different number of spaces."]]],["The `CodeGenerator.INDENT` property defines the method used for indenting code. It defaults to two spaces, but individual language generators can modify this. They can increase the indent size or switch to using tabs instead of spaces. This property is a string value that represents the chosen indentation method. Its primary function is to provide a customizable indentation format for generated code.\n"]]