Bug 67397 - Provide feature to reformat all sources of project
Summary: Provide feature to reformat all sources of project
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 5 votes (vote)
Assignee: Dusan Balek
: 125051 201564 209370 (view as bug list)
Depends on:
Reported: 2005-10-24 10:19 UTC by Vladimir Yaroslavskiy
Modified: 2013-12-18 22:28 UTC (History)
3 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yaroslavskiy 2005-10-24 10:19:51 UTC
Provide feature to reformat all sources of project, not only one current opened
file in editor. It takes a lot of time to open all classes one by one and
reformat it.
Comment 1 rocky 2007-05-21 13:37:15 UTC
I would prefer this to act like the PMD plugin: running it on a file does just
that file, but you can also run it on a node in the project window using
right-click, Tools. This lets you apply formating to individual classes,
packages or directories.
Comment 2 hoijui 2010-04-13 20:59:10 UTC
I missed this functionality in multiple project already. Right now, i started to work in a new project with around 500 java source files. Most of them are quite ugly:
* using spaces before tabs in the indentation
* being inconsistent in brackets usage within files

This could be an alternative, until it is supported by Netbeans its self:
though the comments seem to suggest it currently does not work with NB.
Comment 3 Jan Lahoda 2012-02-10 14:11:06 UTC
The Source/Format action should work on packages, folders, source groups and projects after:
Comment 4 hoijui 2012-02-18 19:26:12 UTC
nice! thanks! :-)
looking forward to test this in the next release with a few libraries.
Comment 5 soldatov 2012-03-11 11:43:33 UTC
*** Bug 209370 has been marked as a duplicate of this bug. ***
Comment 6 markiewb 2013-12-18 22:04:42 UTC
*** Bug 125051 has been marked as a duplicate of this bug. ***
Comment 7 markiewb 2013-12-18 22:28:55 UTC
*** Bug 201564 has been marked as a duplicate of this bug. ***