我在 Visual Studio 上使用 phpfmt - PHP formatter extinction。 我试图将格式化程序配置为不在 [if, switch...] 语句后添加空格。
当前行为:
if (condition) {
}
switch (variable) {
}
通缉:
if(condition){
}
switch(variable){
}
我应该对 settings.json 做哪些修改来实现这一点。 当前:
{
"phpfmt.passes": [
"PSR2KeywordsLowerCase",
"PSR2LnAfterNamespace",
"PSR2ModifierVisibilityStaticOrder",
"PSR2SingleEmptyLineAndStripClosingTag",
"ReindentSwitchBlocks"
],
"phpfmt.exclude": [
"ReindentComments",
"StripNewlineWithinClassBody"
],
"phpfmt.psr2": false,
}