Eclipse格式化程序保持One-Liners [英] Eclipse formatter to keep One-Liners
本文介绍了Eclipse格式化程序保持One-Liners的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以将Eclipse Formatter配置为保留:
Can Eclipse Formatter be configured to keep:
public Long getId() { return this.id; }
也许将小(一行)定义格式化为一行吗?
And maybe to format small (one line) definitions as one-liners?
推荐答案
否:错误205973 已请求这样一个格式化选项。
3年后,似乎不可能实现。
No: bug 205973 has been written to request such a formatter option.
3 years later, it doesn't seem likely to be implemented.
编辑2001年5月:
maleki 提及,为了回应 orb鱼的评论,至少你有对Eclipse可能或不可以格式化的代码区域进行一些控制:
maleki mentions, in response to orbfish's comment, that at least you have some control over the zones of code which Eclipse may or may not format:
这不是一个直接的答案,但它可以帮助:
This isn't a direct answer, but it can help:
这篇关于Eclipse格式化程序保持One-Liners的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文