Answer the question
In order to leave comments, you need to log in
How to format sql code in VS Code?
Hello.
I'm looking for a way / extension with which you can beautifully format sql code (preferably PostgreSQL). It is paramount that by a keyboard shortcut or through a command in Ctrl + Shift + P all service words are converted to uppercase.
For example, to have this code:
create table if not exists cities (id integer primary key, name varchar(255) not null);
select * from cities;
CREATE TABLE IF NOT EXISTS cities (id INTEGER PRIMARY KEY, name VARCHAR(255) NOT NULL);
SELECT * FROM cities;
CREATE TABLE IF NOT EXISTS cities
(
id INTEGER PRIMARY KEY,
name VARCHAR(255) NOT NULL
);
SELECT *
FROM cities;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question