Eclipse 3.7早期的行换行注释



我在Windows Vista上运行靛蓝版本。
我已经将General -> Editors -> Text Editors中的打印边距和Java -> Code Style -> Formatter中的最大行宽设置为100个字符,但它仍然决定将我的注释包装在第80列。

例如,在我的文件开头输入:
(最长行分别为90和94个字符)

// This comment is over 80 characters long, but it is in no way over 100 characters long.  
/*  
 * The same problem occurs in block comments as well. True, neither problem is code breaking,  
 * but it certainly is annoying all the same.  
 */  

格式为:
(行分别为73和79个字符)

// This comment is over 80 characters long, but it is in no way over 100  
// characters long.  
/*  
 * The same problem occurs in block comments as well. True, neither problem is  
 * code breaking,  
 * but it certainly is annoying all the same.  
 */  

我试过重新启动Java,并点击了我能找到的每个"应用"按钮,但无济于事。在发布说明中,它似乎没有被列为已知问题。我是不是漏掉了什么?也许是简单的?

至少在Eclipse Helios(3.6)中,在Formatter-settings中有一个单独的"Comments"-选项卡,它有自己的"Comments的最大行宽"-设置。

最新更新