I'm working on a Angular project on Visual Studio Code and I getting one annoying format document setting on Typescript files where it breaks parameters to a new line:
Before formatting (alt+shift+f):
this.opportunityId = this.route.snapshot.paramMap.get('opportunityid');
this.opportunityTermVendorId = this.route.snapshot.paramMap.get('vendorid');
this.opportunityTermVendorAssetId = this.route.snapshot.paramMap.get('assetid');
this.opportunityTermCollateralId = this.route.snapshot.paramMap.get('collateralid');
After formatting (alt+shift+f):
this.opportunityId = this.route.snapshot.paramMap.get('opportunityid');
this.opportunityTermVendorId = this.route.snapshot.paramMap.get('vendorid');
this.opportunityTermVendorAssetId = this.route.snapshot.paramMap.get(
'assetid'
);
this.opportunityTermCollateralId = this.route.snapshot.paramMap.get(
'collateralid'
);
I have word wrap turned off but I still tried to set it to a bigger word wrap column value. See my current settings override
{
"git.confirmSync": false,
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"workbench.iconTheme": "material-icon-theme",
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"editor.wordWrapColumn": 180
}