Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>sql-formatNew to Visual Studio Code? Get it now.
sql-format

sql-format

ciniao_0504

|
5,372 installs
| (0) | Free
sql-format
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
change languige mode:sql or *sql

exsample:

select  field1 
       ,field2 
       ,case when c1 = 'c1' then 1
             when c1 = 'c2' then 2
             else 0
         end field3 
       ,sum(field4) field4
  from  dual
 where  condition1 = 'a1'
   and  condition2 = 'a2'
 group  by  field1 
       ,field2 
       ,case when c1 = 'c1' then 1
             when c1 = 'c2' then 2
             else 0
         end
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft