【发布时间】:2014-05-28 01:32:18
【问题描述】:
我似乎找不到阻止 Eclipse 将块样式声明放在同一行的格式化程序设置。
例如,如果我这样输入代码:
private string[] myData={
"someValue1",
"someValue2",
"someValue3",
"someValue4",
"someValue5",
"someValue5"
}
在运行 Eclipse 的 Auto Formatter 后,之前的声明如下所示:
private string[] myData={
"someValue1", "someValue2", "someValue3", "someValue4", "someValue5", "someValue5"};
有没有办法避免这种情况?
【问题讨论】:
标签: eclipse