Reputation: 41158
When I create a new class for instance, I get this:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;
/**
*
* @author Sergio
*/
public class WordManipulations{
}
I hate it when brackets are placed this way. Is there a way to make it create things like this:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;
/**
*
* @author Sergio
*/
public class WordManipulations
{
}
Upvotes: 20
Views: 8488
Reputation: 92864
Simply follow these steps:
Tools -> Options -> Editor
Editor -> Formatting
Upvotes: 43
Reputation: 103135
In Netbeans go to Tools > Options. Then select the Formatting tab and select Java under the language drop down.
There are now several options to change the formatting the way you like it.
Upvotes: 1