clarkyu2016 / sql-beautify

VS Code extension that beautifies SQL(HQL).
MIT License
60 stars 21 forks source link

Extension 'SQL Beautify' is configured as formatter but it cannot format 'SQL'-files #22

Closed ivaquero closed 2 years ago

ivaquero commented 2 years ago

I set this ext in settings as defaultFormatter, but it cannot be identified.

{
"[sql]": {
    "editor.defaultFormatter": "clarkyu.vscode-sql-beautify"
  },
}

image

ivaquero commented 2 years ago

@clarkyu2016 Could you please ask help of VS Code official devs? Or I can do this.

clarkyu2016 commented 2 years ago

Hi @ivaquero, There is no need to set this ext in settings as defaultFormatter. The plugin works in .sql files when you press specific commands (like "Shift+Alt+F").
Currently, I have no idea how to deal it if we want set the ext as defaultFormatter. If you can solve this issue, welcome to pull requests and I will merge it in the next version. 😊

ivaquero commented 2 years ago

Yeah, the ext pretty works well in files. I just think it could be more convenient as the defaultFormatter.

Good works, thank you !

I really wish that I know front-end programming 😅.