java - Is there a way for NetBeans to automatically create brackets in a separate line? -


when create new class instance, this:

/*  * change template, choose tools | templates  * , open template in editor.  */  package helloworld;  /**  *  * @author sergio  */ public class wordmanipulations{         } 

i hate when brackets placed way. there way make create things this:

/*  * change template, choose tools | templates  * , open template in editor.  */  package helloworld;  /**  *  * @author sergio  */ public class wordmanipulations  {  } 

simply follow these steps:

  1. navigate tools -> options -> editor
  2. navigate editor -> formatting
  3. select following
    • language: java
    • category: braces
  4. in "class declaration, method declaration, etc."
    • braces placement: new line

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -