This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to set indentation options on NetBeans6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to set indentation options on NetBeans6.0" Watch "How to set indentation options on NetBeans6.0" New topic
Author

How to set indentation options on NetBeans6.0

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
I had an e-mail about a week ago saying that NetBeans 6.0 was available; I usually use Eclipse but thought I would try NetBeans again. It seems to default to the sort of identation where you get the { at the end of the line; you can even get lines like thisI found the window where you can choose the Java indentation engine, but couldn't seem to alter its options. How can you get { to appear on a line on its own, etc?
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Tools / Options / Java Code / Tab Formatting / Category "Alignment and Braces" / Tab Braces Placement / choose 'New Line' in the three dropdown menus.
And with Alt+Shift+F you can reformat your code so that effects takes place.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
Thank you. That works nicely.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set indentation options on NetBeans6.0
 
Similar Threads
Help with indentation
Out of Bounds Exception returns and the eradication thereof.
Inserting Code?
Running Book Examples
Global Editor project