mtxr / vscode-sqltools

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

Wrap columns containing spaces in backticks #1193

Open theetrain opened 11 months ago

theetrain commented 11 months ago

Thank you for maintaining this great tool!

Is your feature request related to a problem? Please describe.

When connecting to a MySQL database, a *.session.sql file opens where I can enter my queries. I like how it auto-completes table and column names. I have column names containing spaces such as Product Type. After auto-complete, the column name appears as-is without surrounding backticks.

Describe the solution you'd like

As I enter a column name such as Product and I see Product Type suggested, I'd like the column name to be inserted with surrounding backticks since it's a space-separated name. Such as:

`Product Type`

Describe alternatives you've considered

For now, I can manually add the backticks.

Additional context Add any other context or screenshots about the feature request here.