开发者

Eclipse code formatter: spacing in empty blocks

开发者 https://www.devze.com 2023-03-30 18:40 出处:网络
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 poss

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

精彩评论

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