Link to home
Start Free TrialLog in
Avatar of dportabella
dportabella

asked on

Eclipse, format multiple files

According to this website, Eclipse can format multiple files at once:
http://mirror.calvin.edu/eclipse/downloads/drops/R-3.0-200406251208/eclipse-news-part4-R3.html
>Format multiple files
>The Format command is also enabled on Java projects, source folders, and packages.
>When invoked, all contained source files will be formatted according to the currently configured formatter settings.

However, when I select my Java project, Source -> Format,
nothing happens.

(If I open a Java file from this this file, and select Source -> Format,  it works)

What can be the problem?


Many thanks,
DAvid

ASKER CERTIFIED SOLUTION
Avatar of mbodewes
mbodewes
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've checked my installation and source -> format works like a charm. It does seem that it does automatically save the changes though. Are you sure this is not the reason why you don't see any changes?

Try changing a file so the formatting is "broken" and reformatting everything. If it has changed, everything worked fine.

PS reposted because I saw you're answer was not fully answered in the eclipse.tools.jdt newsgroup (looking in another forum to see how the question fares - me pats myself on the back :).