VSCodeBeautify
VSCodeBeautify copied to clipboard
Wrong indentation in switch case
- Operating System (+Version): Ubuntu 18.04
- VS Code Version: 1.36.0
- beautify Version: 1.5.0
vscode:
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
},
"css": [
"css",
"scss"
],
"html": [
"htm",
"html",
"php"
],
"php": [
"php"
]
},
"beautify.config": {
"brace_style": "end-expand,preserve-inline"
},
"editor.formatOnSave": true,
.jsbeautifyrc
{
"e4x": true,
"brace_style": "end-expand,preserve-inline"
}
Action performed
Format javascript file with HookyQR.beautifyFile command
switch (key) {
case ONE:
return {
firstProp: 'value',
secondProp: 'value',
thirdProp: 'value'
};
default:
break;
}
Expected results
No change
switch (key) {
case ONE:
return {
firstProp: 'value',
secondProp: 'value',
thirdProp: 'value'
};
default:
break;
}
Actual results
Extra indentations, only in switch case statement, that's weird
switch (key) {
case ONE:
return {
firstProp: 'value',
secondProp: 'value',
thirdProp: 'value'
};
default:
break;
}