有没有办法使Eclipse的内置Java代码格式化程序忽略注释?每当我运行它时,它就会变成:
/*
* PSEUDOCODE
* Read in user's string/paragraph
*
* Three cases are possible
* Case 1: foobar
* do case 1 things
* Case 2: fred hacker
* do case 2 things
* Case 3: cowboyneal
* do case 3 things
*
* In all cases, do some other thing
*/
到这个:
/*
* PSEUDOCODE Read in user's string/paragraph
*
* Three cases are possible Case 1: foobar do case 1 things Case 2: fred
* hacker do case 2 things Case 3: cowboyneal do case 3 things
*
* In all cases, do some other thing
*/
我已经使用过Windows>首选项> Java>代码样式>格式设置,但是找不到用于保留注释格式的设置。我正在使用Eclipse 3.4.0。