Formatting code of a package
Hello,
If I hit, cntrl+shift+F in the editor then netbean formats my code.
But this feature gets unavailable when I select a directory in the explorer. why?
I have asked all my team members to use tabs as 4, convert tabs to spaces when
saving but sooner or later someone breaks this.
Now I have to go to each file and see if the indentation is correct or not.
If I could right click on a directory and click format and all files in the directory
get formatted, then it will be great.
How can this be done? If not, will it be meaningfull as a new feature in the tool?
regards,
Abhi.
[662 byte] By [
NetBean] at [2007-11-25 16:52:04]

# 1
Download the Jalopy plug-in, it is highly configurable, and will let you
do the whole project if you want to.
http://jalopy.sourceforge.net/
Larry
>>> nospam@nospam.org 08/09/02 03:56 AM >>>
If I hit, cntrl+shift+F in the editor then netbean formats my code.
But this feature gets unavailable when I select a directory in the
explorer. why?
# 2
This has been discussed many times before but the short answer is
Jalopt and checkstyle. Jalopy can format your code and checkstyle as
part of your build process makes sure your coding conventions get
enforced.
Friday, August 9, 2002, 7:59:04 PM, NetBean wrote:
N> Hello,
N> If I hit, cntrl+shift+F in the editor then netbean formats my code.
N> But this feature gets unavailable when I select a directory in the explorer. why?
N> I have asked all my team members to use tabs as 4, convert tabs to spaces when
N> saving but sooner or later someone breaks this.
N> Now I have to go to each file and see if the indentation is correct or not.
N> If I could right click on a directory and click format and all files in the directory
N> get formatted, then it will be great.
N> How can this be done? If not, will it be meaningfull as a new feature in the tool?
N> regards,
N> Abhi.
--
regards,
Peter Kelley
MoveIt Pty Ltd
What makes the desert beautiful is that somewhere it hides a well. -
Antoine-Marie-Roger de Saint-Exupery