Making Eclipse's Java code formatter ignore block comments

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

    Try this one. This worked for me. With the Java Formatter (Windows > Preferences > Java > Code Style > Formatter), you can create a new Formatter profile from existing and then edit it.

    If Eclipse doesn't allow to save this then create a new one and save in that.

提交回复
热议问题