开发者

Can Eclipse reformat multiple files at once?

开发者 https://www.devze.com 2023-01-20 15:07 出处:网络
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 o

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

精彩评论

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