Eclipse Javascript formatter (ctrl-shift-f)

前端 未结 5 1698
北恋
北恋 2021-02-02 09:38

I don\'t like asking this question but I have honestly been looking for a way to figure this out for a very long time.

This is a simple question. I have been using NetBe

5条回答
  •  独厮守ぢ
    2021-02-02 10:29

    The problem can be solved by accessing

    Preferences > JavaScript > Code Style > Formatter
    

    Proceed:

    1. Create a new profile (since you cannot edit the builted-in one), if you haven't already, and click Edit....
    2. Open the Line Wrapping tab.
    3. In the Maximum line width field, enter 9999.
    4. Click Apply, and Ok.

    The problem shows up again for code lines that have more than 9999 characters, but I can live with that.

提交回复
热议问题