vscode-postgres icon indicating copy to clipboard operation
vscode-postgres copied to clipboard

allow set a config for ".sql" to be treated as "postgre files"

Open herbertpimentel opened this issue 6 years ago • 3 comments

Allow a options to identify the extension of files and treat those as postgre files to allow run queries using shortcuts

this is specilly usefull because there's alot of other plugins to work with SQL extension

examplo to add colors, sintax analise and others stuff and I lose all of it if I have to change the file to .pgsql

herbertpimentel avatar Oct 11 '19 14:10 herbertpimentel

At least add setting to add extensions manually.

mirogajdos avatar Feb 13 '20 12:02 mirogajdos

At least add setting to add extensions manually.

If setting up vscode to run and debug .sql files takes more than 15 seconds, it's a "HelloWorld" database tool. (That's not this guy's fault, obviously).

Back to emacs I go...

Serves me right: it's only 2 years since "HelloWorld"-types started making a fuss about VSCode - which is never enough for MSFT to get code to 'beta' quality.

I really ought to have known better than to expect Microsoft to produce a fit-for-purpose lightweight customisable IDE when everything else they make is half-finished and insecure. Geany's better than VSCode.

Bet VSCode phones home, too.

Kratoklastes avatar Apr 11 '20 06:04 Kratoklastes

You can achieve the same result by associating sql files with postgres language in vscode settings

  • Run Preferences: Open settings (JSON)
  • Paste this
"files.associations": {
  "*.sql": "postgres"
}

kamilbeben avatar Aug 27 '20 08:08 kamilbeben