idephpstorm

How do I stop wrapping code when reformat code in phpstorm?


If my code reaches the right magin and I reformat code (Ctrl + Alt + L), PHPStorm automatically wrap code. How do I stop this (reformatting code with wrapping)? I'm working with php and other languages for web development


Solution

  • See under Preferences > Code Style, where you can tweak by language.

    Also check the settings under Preferences > Code Style > General (affects all languages):

    PhpStorm > Preferences > Code Style > General