开发者

Eclipse code formatter: spacing in empty blocks

i configured the eclipse code formatter to display an empty bl开发者_如何学编程ock's brackets in one line. Now my projects checkstyle configuration requires spacing between these brackets. Is it possible to tell Eclipse to do this.

e.g.: emptyMethod() { }

Thanks for any help.


As far as I know there is no way to put a space between the braces with the Eclipse formatter. As a workaround I removed the "WhitespaceAround" rule from the checkStyle plugin configuration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜