microsoft / vscode-mssql

Visual Studio Code SQL Server extension.
Other
1.55k stars 459 forks source link

Formatter should have option to add square brackets around all identifiers #839

Open kevcunnane opened 7 years ago

kevcunnane commented 7 years ago

Raised in issue #838, splitting out into its own issue to track the feature request. The formatter has an option in the SqlToolsService to support enclosing identifiers in square brackets but this was never implemented. It's feasible to do so but will require a good deal of testing to verify it works in all scenarios.

schallm commented 6 years ago

Please implement this option as always / only when required (if identifier has spaces) if possible. Our naming standards don't allow spaces in identifiers and the brackets are just extra cruft. It would be nice to have them removed if another tool/developer has added them.