Using sqlc.narg with VSCode auto format via pg_format

April 5th, 2024

Using sqlc.narg conflicted with VSCode pgFormatter auto formatter, with it being interpreted as a token instead of a function. If you’re using sqlc.narg while still wanting to use pgFormatter, create a new line delimited file list of sqlc.arg and sql.narg. Then set that file’s path under “Extra functions”.

pgFormatter config