Solved

Eclipse, format multiple files

Posted on 2008-06-26
2
810 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now