【问题标题】:How to change Eclipse indentation style for automatically generated code?如何更改自动生成代码的 Eclipse 缩进样式?
【发布时间】:2010-05-23 12:52:26
【问题描述】:

有什么方法可以改变 Eclipse 中自动生成的代码的缩进样式吗? 我想换成

class Test {
blah blah
}

  class Test 
  {
  blah blah
  }

【问题讨论】:

    标签: eclipse coding-style indentation


    【解决方案1】:

    如果你改变了大括号的格式,所有的新类都会按照新的格式生成:

    【讨论】:

    • 非常感谢!花了很长时间寻找那个。
    【解决方案2】:

    它位于最新 Eclipse 的“Window | Preferences”中。

    【讨论】:

    • ... 如两年前给出的已接受答案所示。 Everything 在 Eclipse 中的 Window > Preferences 中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-04
    • 2012-05-06
    • 1970-01-01
    • 1970-01-01
    • 2014-07-17
    • 2010-09-18
    • 1970-01-01
    相关资源
    最近更新 更多