svipas / vscode-prettier-plus

Prettier (code formatter) for the VS Code.

Home Page:https://marketplace.visualstudio.com/items?itemName=svipas.prettier-plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

braceStyle not implemented

ctrlbrk42 opened this issue · comments

commented

https://github.com/prettier/plugin-php supports "prettier.braceStyle" which allows setting 1tbs so that braces are not pushed to the next line, but remain on the same line.

Can you please add support for this in the config? I did not see a way to set a config file to do it myself?

commented

Actually, I finally found a workaround and with luck it will help others. Answer didn't depend on Prettier in the end.

add to settings.json in vs code:
"intelephense.format.braces": "k&r"