In VS Code, if I type:
function fname( $var ) {
}
It gets converted to:
function fname($var) {
}
Is there a setting that will work for ALL languages, like:
"format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParentheses": false
Here are my relevant VS Code settings:
{
"[js]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[php]": {
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client",
"format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false
"editor.insertSpaceBeforeFunctionParenthesis": true
},
"editor.detectIndentation": false,
"editor.find.loop": false,
"editor.formatOnSave": true,
"editor.insertSpaces": false,
"editor.minimap.enabled": false,
"editor.renderWhitespace": "none",
"editor.tabSize": 4,
"editor.trimAutoWhitespace": true
}
Please note: I know if I remove "editor.formatOnSave": true, it'll stop, but I don't want to do that since I'll lose all my other formatting. I need a solution that works with "editor.formatOnSave": true.