Making Eclipse's Java code formatter ignore block comments

后端 未结 11 536
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 13:20

Is there a way to make Eclipse\'s built-in Java code formatter ignore comments? Whenever I run it, it turns this:

    /*
     * PSEUDOCODE
     * Read in us         


        
11条回答
  •  误落风尘
    2020-12-04 14:02

    Another possibility is to use HTML's

     in Javadoc:

    /**
     * 
     *    this
     *   is
     *      kept
     *  as
     *    is
     * 
    */

    At least this is how I tend to embed my ASCII-art in source code comments :)

提交回复
热议问题