Syntax highlighting and code snippets for BigQuery SQL in Visual Studio Code.
This extension is a fork of the original extension SQL (BigQuery) by Shinichi Takii.
The following changes were made:
- Renamed the language ID from
sql-bigquerytobqsql.- This change was made to provide syntax highlight to BigQuery Driver for SQLTools, which together with SQLTools provide autocompletion and integration with BigQuery.
- Added file icon to
bqsqllanguage. - Applied patch for highlight of table names with hyphens (shinichi-takii/vscode-language-sql-bigquery#49 by @alatani).
- Renamed the extension to
BigQuery SQL Language Support. - Bump to v2 due to the language ID change.
- SQLTools by Matheus Teixeira
- BigQuery Driver for SQLTools by Evidence
Adding the following to your settings.json file in your workspace will enable the SQLTools extension to provide autocompletion, formatting and codelens in BigQuery SQL files:
{
"sqltools.formatLanguages": [
"sql",
"bqsql"
],
"sqltools.completionLanguages": [
"sql",
"bqsql"
],
"sqltools.codelensLanguages": [
"sql",
"bqsql"
]
}- Syntax highlighting for Google BigQuery SQL language.
- Supports Standard SQL and Legacy SQL.
- Detect and highlight Legacy SQL only functions.
- Code snippets with SQL, DML, DDL, and Standard SQL functions.
- View > Extensions
- Search for
BigQuery SQL Language Support - Click the Install button
- View > Command Pallet > Change Language Mode (or Ctrl+Shift+L)
- Select to
BigQuery SQL
Alternatively, if you are exclusively using BigQuery SQL, you can add the following to the settings.json file in your workspace:
{
"files.associations": {
"*.sql": "bqsql"
}
}