Making Eclipse's Java code formatter ignore block comments

后端 未结 11 528
没有蜡笔的小新
没有蜡笔的小新 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 13:54

    If you want to supress formatting in eclipse, you can always wrap content that is intended to NOT TO BE FORMATED into

    UNFORMATTED CONTENT
    tag. Javadoc formatter will detect that tag, and leave everything between that tags unformatted.

    Pros:

    • Rest of Javadoc is still formatted
    • Javadoc's html output will be "unformatted" as well because of pre tags

    Cons:

    • Not seeing one

提交回复
热议问题