Closed toggenation closed 2 months ago
OK finally found my own answer to this.
Intelephense uses https://github.com/beautifier/js-beautify (which includes HTML formatting).
To stop the extra lines put a .jsbeautifyrc
file in the root of your project with the following and it will stop inserting extra lines around head, body & html
{
"html": {
"extra_liners": []
}
}
Describe the bug Intelephense formatter adding extra lines in PHP/HTML between html head and body tags
To Reproduce Format the following php document with intelephense
Result
Expected behavior I would like to be able to turn off the extra lines between the html, head and body tags so the output is:
Platform and version Ubuntu 22.04.3 LTS running in WSL on Windows 11 Pro and licensed Intelephense version v1.10.4