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

前端 未结 3 1697
攒了一身酷
攒了一身酷 2021-01-03 23:40

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.
 */

pack         


        
3条回答
  •  孤城傲影
    2021-01-04 00:09

    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.

提交回复
热议问题