?
Solved

Eclipse, format multiple files

Posted on 2008-06-26
2
Medium Priority
?
853 Views
Last Modified: 2013-12-15
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

0
Comment
Question by:dportabella
  • 2
2 Comments
 
LVL 9

Accepted Solution

by:
mbodewes earned 1500 total points
ID: 21903900
Not a solution, but I would recommend posting this question in one of the newsgroups of the eclipse community.

news server: news.eclipse.org
group: eclipse.tools.jdt
0
 
LVL 9

Expert Comment

by:mbodewes
ID: 21936786
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 :).
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question