felixfbecker / vscode-php-intellisense

Advanced PHP IntelliSense for Visual Studio Code 🆚💬
MIT License
410 stars 88 forks source link

stop formatting HTML statements to single line #520

Open lae0901 opened 3 years ago

lae0901 commented 3 years ago

how to get the PHP intellisense extension to stop formatting HTML statements as a single line of text?

            <input type="text" class="form-control" id="dirPath" name="dirPath" 
                       onblur="submitForm()" value="<?= $dirPath ?>" style="width:20em;">

is formatted by the extension as a single line:

            <input type="text" class="form-control" id="dirPath" name="dirPath" onblur="submitForm()" value="<?= $dirPath ?>" style="width:20em;">

How to stop the extension from doing that?

When I uncheck the intelephense format enable setting, the formatting of HTML elements stops. But PHP language statements also stop being formatted.