Disable hard word wrapping in PhpStorm when formatting Smarty template

Viewed 1699

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

2 Answers

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

Twig has it owns Code Style Settings: PhpStorm Settings

Related