Search code examples
phpstormsmartyword-wrap

Disable hard word wrapping in PhpStorm when formatting Smarty template


I can't disable hard word wrapping when formatting Smarty template file in PhpStorm 2018.3.

I have changed "Hard wrap at" setting to 500 in Settings->Editor->Code Style->PHP and to 1000 in Settings->Editor->Code Style->HTML but it wrap lines again when formatting.

Before formatting: Smarty template before formatting

After formatting: Smarty template after formatting


Solution

  • Adjust the value of hard wrap at File | Settings | Editor | Code Style. Smarty doesn't have its own settings for Hard Wrap: it takes it from "General" config section. here