vscode-dbt v0.5.0Provides snippets for dbt and Jinja functions in SQL, YAML, and Markdown. Cool Tip: For a richer integration between dbt and vscode you should install vscode-dbt-power-user it does a LOT of cool stuff such as: code navigation between your models, completion aware of your dbt project, and much more. dbt power user has a dependency on this extension so you'll also find my snippets in there! Give it a go! FeaturesGeneric Jinja
dbt-SQL
Model OverviewThis snippet helps coders provide a high-level overview of every model in a standard way. YAML
Markdown
Set-upTo enable support for these snippets when viewing a SQL, YAML, or Markdown file in Visual Studio Code, enter Alternatively, add the following to your Visual Studio Code settings in your dbt project:
If snippet suggestions still do not work after selecting the appropriate language, try adding the following configuration to you Visual Studio Code project settings:
Known IssuesUsing the Jinja YAML language for YAML files changes the default comment style from YAML ( Creditsdbt jinja conceptsadapted from https://github.com/fishtown-analytics/atom-dbt/blob/master/snippets/dbt-sql.cson Jinja Conceptsadapted from https://github.com/danielchatfield/atom-jinja2/blob/master/snippets/atom-jinja2.cson and https://github.com/fishtown-analytics/atom-dbt/blob/master/snippets/dbt-jinja.cson Release Notes |