Search code examples
phpstormword-wrap

PhpStorm is not wrapping long lines


I have reinstalled PHPStorm and adjusted the wrapping and right margin but seems it's not working what's it I'm missing?

enter image description here

enter image description here

enter image description here


Solution

  • You need to fix your Soft Wrap settings. From what I see from your first screenshot you have made an error in the list of "wrap by default" extensions: they should be separated by the semicolon ; but I see a comma , there: ... ; *.adoc, *.php.

    P.S. If you do not care about specific extensions / or to enable Soft Wraps by default for ALL files, just enter * in that field.


    Side note: You can always manually enable soft warping for the current file via Main Menu | View | Active Editor | Soft Wrap (should also be accessible via gutter context menu: the area where line numbers are)