Eclipse-like comment formatting in IntelliJ IDEA?

前端 未结 7 1715
南方客
南方客 2020-12-11 00:38

In Eclipse, I can format comments by selecting them and pressing Shift + Ctrl + F. For example, when I select a method comment like this:

/**
 *         


        
7条回答
  •  情歌与酒
    2020-12-11 00:42

    The closest thing that you can get is Edit | Join Lines (Ctrl+Shift+J). You have to select the lines you want to join first.

    To wrap long comments enable Settings | Code Style | JavaDoc | Wrap at right margin.

提交回复
热议问题