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.
精彩评论