Solved

Eclipse, format multiple files

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

758 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