vscode-spell-checker icon indicating copy to clipboard operation
vscode-spell-checker copied to clipboard

SQL Language Dictionary Support

Open mryan-hpg opened this issue 2 years ago • 2 comments

Happened to install this extension, and was in a SQL file (.sql) and noticed that it wasn't identifying spelling errors in my comments.

It would be a nice feature to have in support of SQL.

Various delimiters

  • ANSI SQL Value delimiter (single quote, magic quotes)
  • ANSI-SQL - quoted delimiter (", double quote, magic double quotes)
  • T-SQL ([] square braces)
  • MySQL (backtick`)

As well as the common reserved words (which should actually be proper spelling, except for PROC and TRANS iirc.

mryan-hpg avatar Mar 10 '23 15:03 mryan-hpg

@mryan-hpg,

A SQL dictionary is already included. To enable it, please open a SQL document and run the command: Enable Spell Checking Document Language.

image

Jason3S avatar Mar 10 '23 16:03 Jason3S

@Jason3S Thank you... much appreciated. SQL wasn't listed in the languages for the config on the summary screen in the Extensions tab, so didn't realize.

Might be a good idea to update the documentation, and summary screen to include the the default configuration, with optional values (for languages) commented out if not enabled by default.

mryan-hpg avatar Mar 10 '23 16:03 mryan-hpg