【问题标题】:How to increase the indent size in (Cloud9)如何增加(Cloud9)中的缩进大小
【发布时间】:2015-06-11 09:06:09
【问题描述】:

在我的 cloud9 编辑器中,不知何故,有些文件的缩进为 3 个字符,而另一些文件的缩进为 7 个。

有没有办法协调这一点并在任何地方都有相同的缩进?是否还有自动缩进?

3 个字符的缩进示例:

function indent3() {
   // code here
}

7 个字符的缩进示例:

function indent7() {
       // code here
}

【问题讨论】:

    标签: layout ide indentation cloud9-ide


    【解决方案1】:

    您可以通过单击该文件的编辑器右下角附近来调整标签大小。

    【讨论】:

    • 将您的偏好设置为默认设置为“Cloud9 -> 打开您的项目设置 -> ace: 下的设置”
    【解决方案2】:

    另一种方法是从 Cloud 9 用户界面右上角的设置按钮中选择首选项。这将带您进入一个 GUI,您可以在其中设置项目的默认缩进,因此它的所有文件都具有相同的缩进。

    Cloud 9 interface with settings button preferences in upper right, and on the left, changing the indent for a project.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-06
      • 2014-08-03
      • 2016-04-23
      • 1970-01-01
      • 2012-11-07
      • 2010-12-13
      相关资源
      最近更新 更多