Eclipse Formatter - 在新行

时间:2016-01-14 18:15:58

标签: java eclipse code-formatting eclipse-formatter

我希望能够自定义Eclipse格式化程序,以便(在必要时)括号括起来的块可以被格式化,使得开括号和右括号都在它们自己的行上。 (像Allman风格,但用于括号而不是括号)

@Annotation
(
  value1 = true,
  value2 = "this one is a string"
)
public void MyMethod
(
  int param1,
  String param2,
  double param3
)
{
  //do something
}

我能得到的最好的:

@Annotation(
  value1 = true,
  value2 = "this one is a string")
public void MyMethod(
  int param1,
  String param2,
  double param3)
{
  //do something
}

0 个答案:

没有答案
相关问题