最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

eclipse - Ecipse Java Formatter Single disable line method - Stack Overflow

programmeradmin2浏览0评论

I have simple methods like :

@Override
public String getTechnicalMessage() {
    return techMessage;
}

And the formatter puts that in a single line :

@Override
public String getTechnicalMessage() { return techMessage; }

Is there a way to prevent that?

I checked the "new line" and "brace" format options but there is nothing about "single line method".

I guess there is an option which use that obviously otherwise the formatter would not force the single line.

This is a custom formatter.

If I compare to the regular one it does not "join" the line.

I tried to export and compare XML files but I don't really see which setting could change this behavior.

发布评论

评论列表(0)

  1. 暂无评论