Making Eclipse's Java code formatter ignore block comments

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

    You can change this in Windows - Preferences - Java - Code Style - Formatter, than click the Edit.. button, find Comments, choose the Never Join Lines.

    Then, it should be OK.

提交回复
热议问题