Eclipse: Automatic line wrapping to specified width

前端 未结 3 1417
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 08:56

I\'d like for my lines, especially within comments, to be automatically managed so they don\'t get too long.

I remember once I had a configuration for vim

3条回答
  •  时光说笑
    2020-12-30 09:37

    The automatic formatting of Eclipse great no question.

    If your comments are reformatted depends on what comment type and how you already have inserted line breaks.

    Writing for example one very long line comment starting with // will be broken down by the formatter into multiple lines.

    However you later edit the formatted lines - e.g. delete parts of it the formatter will leave them as they are. Only over-long lines will be changed.

    Just in difference to block comments like this: /* comment */ Those comments will always be re-formatted in case the line is too short or too long.

提交回复
热议问题