How to have the formatter wrap code with IntelliJ?

后端 未结 7 1347
梦谈多话
梦谈多话 2020-12-22 17:31

I\'m not able to format my code in IntelliJ.

I can see the margin line (by default at 120 columns) but it seems that the activation from the menu:

7条回答
  •  忘掉有多难
    2020-12-22 18:14

    In order to wrap text in the code editor in IntelliJ IDEA 2020.1 community follow these steps:

    Ctrl + Shift + "A" OR Help -> Find Action
    Enter: "wrap" into the text box
    Toggle: View | Active Editor Soft-Wrap "ON"
    

    enter image description here

提交回复
热议问题