2012-12-04 12 views
8

mam ten kawałek Java-Code:Dlaczego zaćmienie zawsze następuje po @param myParameter w JavaDoc?

/** 
* 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()]; 
} 

Gdybym naciśnij Ctrl + Shift + F, mam to:

/** 
* 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()]; 
} 

Dlaczego zaćmienie zrobić PRAM-zawijanie wierszy? Jak mogę go zmienić (bez całkowitego przełączenia dla JavaDoc)?

Są to Formatter settings Obecnie używam w Eclipse 3.5.2 (Galileo).

Odpowiedz

12

Okno> Preferencje> Java> Style code> formater
(Edit)> Komentarze
Pole wyboru: Nowa linia po tagach @param

widziany w Juno (4.2).

+0

Hej, to też mnie denerwowało (chociaż używam Ctrl + F selektywnie, więc rzadko mnie to dotyczy), więc dziękuję za pytanie! :-) – PhiLho

+0

Dzięki za odpowiedź :-) Działa również w Galileo. –

+2

To jest "" w XML. –

Powiązane problemy