mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.44k stars 291 forks source link

Stop formatter from adding spaces inside braces. #1109

Open Greyheim opened 1 year ago

Greyheim commented 1 year ago

I have problems when using parameters it works fine when using from inside vscode however the format that it creates causes problems when I place the report inside our database system. The formatter adds white space inside braces which causes the error.

I would like the option for the formatter to leave {staff_id} without whitespace instead of the current functionality changing it to { staff_id }

YannLevavasseur commented 1 year ago

Same use case here, it would be awesome to have an option for this

Yangshell commented 8 months ago

I have the same need

Buedenbender commented 4 months ago

Same here

gjsjohnmurray commented 3 months ago

Workaround is to disable formatting by setting "sqltools.formatLanguages": [],

Please make sure you restart VS Code after you do this.