netbeans 7.4中的奇怪格式

时间:2013-11-10 09:09:51

标签: java netbeans netbeans-7.4

“奇怪的格式化”

enter image description here

 public static void main(String[] arguments) {
        // get current time and date
        Calendar now = Calendar.getInstance();
        int hour = now.get(Calendar.HOUR_OF_DAY);
        int minute = now.get(Calendar.MINUTE);
        int month = now.get(Calendar.MONTH) + 1;
        int day = now.get(Calendar.DAY_OF_MONTH);
        int year = now.get(Calendar.YEAR);

        // display greeting
        if (hour < 12) {
            System.out.println("Good morning.

继承了我的问题的主旨,尝试了eclipse一段时间并不是真的喜欢它并且切换回eclipse。现在7.4是最新版本,我下载它认为它会更好。但是当你查看我的代码的附加图像时,所有的间距都搞砸了。我希望代码看起来正常(如上面的代码)。我知道这并没有真正有所作为,但它使得阅读屁股变得痛苦。有没有办法让7.4遵循某些以前版本的NetBeans的格式规则

0 个答案:

没有答案
相关问题