From @sofianhn on March 15, 2016 21:7
- add
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true to the workspace settings.
- open a TS file and copy
if (x) {var x = 1;}
- select the line and format
- expected==Actual =>
if (x) { var x = 1; }
- change the option to false.
- format again
- Actual ==
if (x) { var x = 1; } but expected if (x) {var x = 1;}
Copied from original issue: microsoft/vscode#4279
From @sofianhn on March 15, 2016 21:7
VSCode Version: 0.10.12
OS Version: OSX
Default initializers on required parameters #4022
Steps to Reproduce:
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": trueto the workspace settings.if (x) {var x = 1;}if (x) { var x = 1; }if (x) { var x = 1; }but expectedif (x) {var x = 1;}Copied from original issue: microsoft/vscode#4279