Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Eclipse reformat multiple files at once?

Tags:

eclipse

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?

like image 353
Stabledog Avatar asked Oct 16 '10 18:10

Stabledog


1 Answers

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.

like image 52
Mike Daniels Avatar answered Nov 04 '22 14:11

Mike Daniels