【发布时间】:2010-01-16 05:07:37
【问题描述】:
例如,当我创建一个新类时,我得到了这个:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;
/**
*
* @author Sergio
*/
public class WordManipulations{
}
当括号以这种方式放置时,我讨厌它。有没有办法让它创造这样的东西:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package helloworld;
/**
*
* @author Sergio
*/
public class WordManipulations
{
}
【问题讨论】:
-
你在说什么? :S
-
hehe 有趣的是,我有 Java 中使用的那种风格(大括号在新行中)。就像我讨厌 C# 使用前者(在同一行中的左大括号)一样,我认为每种语言都应该遵守核心使用的约定。
标签: java ide netbeans brackets