Mar*_*oma 10 eclipse autoformatting
我有这段Java代码:
/**
* Initializes the Levenshtein Object with the two given words.
*
* @param word1 first word
* @param word2 second word
*/
public Levenshtein(String word1, String word2) {
this.word1 = "." + word1.toLowerCase();
this.word2 = "." + word2.toLowerCase();
this.distance = new int[this.word2.length()][this.word1
.length()];
}
Run Code Online (Sandbox Code Playgroud)
如果我按Ctrl + Shift + F,我得到这个:
/**
* Initializes the Levenshtein Object with the two given words.
*
* @param word1
* first word
* @param word2
* second word
*/
public Levenshtein(String word1, String word2) {
this.word1 = "." + word1.toLowerCase();
this.word2 = "." + word2.toLowerCase();
this.distance = new int[this.word2.length()][this.word1
.length()];
}
Run Code Online (Sandbox Code Playgroud)
为什么eclipse做这个婴儿车线包装?我怎样才能切换它(没有为JavaDoc完全切换它)?
这些是我目前在eclipse 3.5.2(Galileo)中使用的Formatter设置.
Phi*_*Lho 16
窗口>首选项> Java>代码样式>格式化程序
(编辑)>注释
复选框:@param标记后的新行
见于朱诺(4.2).