Skip to content

Control formatting options #18683

Open
@mtaylorfsmb

Description

@mtaylorfsmb

Type: Feature Request

Every time I save a query file it auto-formats the SQL file. This is correct because I have this feature set for VSCode. However the formatter for SQL is bad. It basically messes up my queries and I have to undo the changes.

The only workaround right now is to disable auto-format on save for all of VS Code or live with the poorly formatted SQL files. Neither is ideal.

We need to be able to control how SQL files are formatted like we can for other languages. Alternatively we need to be able to turn off this feature on a language by language basis, which is probably a VS Code change.

Right now formatting is just plain bad and this is yet another knock against this extension. I honestly find working in SSMS, with is broken Intellisense, faster and easier than using this extension right now.

Extension version: 1.28.0
VS Code version: Code 1.97.1 (e249dada235c2083c83813bd65b7f4707fb97b76, 2025-02-10T13:13:58.153Z)
OS version: Windows_NT x64 10.0.26100
Modes:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions