SORU
21 HAZİRAN 2009, Pazar


'in Eclipse yapma Java kod biçimlendirici yorumları görmezden

Bir şekilde Tutulması yerleşik Java kod biçimlendirici yorumları görmezden olun. Ben çalıştırmak zaman, bu çıkıyor:

    /*
     * 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
     */

bu içine:

    /*
     * 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
     */

Zaten Windows ^ ile yaklaşık oynadı . Tercihler ^< Java . Kod Tarzı >Biçimlendirici ayarları ama yorum biçimlendirme tutmak için bir iş bulamıyorum. Eclipse 3.4.0 kullanıyorum.

CEVAP
28 Mart 2011, PAZARTESİ


Özel blok yorum biçimlendirmeyi kaldırmak için kullanabileceğiniz başka bir çözüm yolu var. Blok açıklamanın başında, biçimlendirme kullanım /*- (tire not) biçim dosyası geri kalanı. eğer etkilenen olmayacak

/*-
 * Here is a block comment with some very special
 * formatting that I want indent(1) to ignore.
 *
 *    one
 *        two
 *            three
 */

Kaynak: http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-141999.html#350

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • AyfionGaming

    AyfionGaming

    20 ŞUBAT 2013
  • LG Mobile Global

    LG Mobile Gl

    2 EYLÜL 2010
  • bored before i even began

    bored before

    30 Mart 2009