开发者

Can Eclipse reformat multiple files at once?

I've invested a fair amount of time creating a code style profile in Eclipse which matches our persnickety code standard. 开发者_运维百科 Is there a way to apply this style en masse to many files at once, so I don't have to manually load/format/save each in turn?


You right-click on a package in the Package Explorer, and use the "Source > Format" menu option to format them all at once. You can also set up the "Source > Clean Up..." action to format in addition to other cleanup actions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜