Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>osavNew to Visual Studio Code? Get it now.
osav

osav

Maximilian Seipel

|
13 installs
| (0) | Free
osav
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Setup

Step 1

Go to File -> Preferences -> Settings

Step 2

Enable 'Editor: Format On Save'

Step 3

Profit


How to use

CTRL-S
Format and save

Open Menu (Left)
Use functionalities there


CTRL-S

1. SQL Formatting

Base: sql-formatter (https://github.com/vertical-blank/sql-formatter)

{
    language: 'bigquery',
    keywordCase: 'upper',
    linesBetweenQueries: 2
}

2. Replaces

Umlaute
ä, Ä, ü, Ü, ö, Ö, ß -> ae, Ae, ue, Ue, oe, Oe, ss
Keywords to Uppercase (that sql-formatter library missed) 
min, max, cast, abs, sum, avg, trim, ifnull, if, datetime, timestamp,...

3. Remove Linebreaks / Empty Lines

(* = 1 or more linebreaks/empty lines)
- DECLARE...;*DECLARE...; -> DECLARE...;\nDECLARE...;
- STRUCT< e1, *e2, *e3> -> STRUCT< e1, e2, e3>
- IF * AND/OR -> IF AND/OR
- END * WHILE; -> END WHILE;
- SET * ...; -> SET...;

3. Add Linebreaks / Empty Lines

- WHILE DO -> WHILE\nDO
- BEGIN IF -> BEGIN\nIF
- Above a comment

4. Add Intent

- BEGIN ... END;
- WHILE DO ... END WHILE;
- IF...ENDIF;

4. OSAV Specific

Step Aliases
- add comment that indicates the step's number(-- [STEP ALIAS 2/10])


Spec Generation

1. Quality Checks

General
- string variables(table_name, resource_identifier, ...) not empty
- unique_row_id either TRUE/FALSE
- [Warning] sharepoint not emtpy


Sources
- name contains only lowercase letters, numbers and underscore
- name does not end with underscore
- data group filter is valid ("Only Newest", "Only Newest by Date", ...)


Columns
- name contains only lowercase letters, numbers and underscore
- data type is valid ("INT64", "STRING", ...)
- description not empty


Combination of Sources
- name contains only lowercase letters, numbers and underscore
- name does not end with underscore
- last step alias is called 'final'

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft