Php Storm : How can i automate breaking lines in PHPStorm 2.1

后端 未结 9 1515
攒了一身酷
攒了一身酷 2020-12-15 16:10

How can i automate breaking lines (word wrap) in PHPStorm 2.1?

9条回答
  •  天涯浪人
    2020-12-15 16:31

    Using phpstorm 2019.3.4 as well as new and older version :

    1. Use Ctrl + Alt + S to open the settings menu

    2. Select and click Editor

    3. Choose Code Style

    4. Change the default value of the Hard wrap value to 90

    5. Apply and save changes

    6. Press Ctrl + A to highlight and select all your codes in the text editor

    7. Press Ctrl + Alt + L to format your code nicely

    Or when using the default settings for Hard wrap at 180 , follow 6 and 7

提交回复
热议问题