Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Postgres HackerNew to Visual Studio Code? Get it now.
Postgres Hacker

Postgres Hacker

Tristan Partin

|
542 installs
| (0) | Free
Support for Postgres hackers and extension developers
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Postgres Hacker

This is a Visual Studio Code extension to assist developers in the development of Postgres and Postgres extensions.

Features

Formatting with pgindent

This extension can act as a formatter using the pgindent tool. See all the related postgres-hacker.pgindent settings for configuration options. In a typical Postgres source tree, the settings might look something like this:

{
  "[c]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "tristan957.postgres-hacker"
  },

  "files.associations": {
    "*.h": "c"
  },

  "postgres-hacker.enable": true,
  "postgres-hacker.pgindent.path": "src/tools/pgindent/pgindent",
  "postgres-hacker.pgindent.indent": "build/src/tools/pg_bsd_indent/pg_bsd_indent"
}

Discussion takes place on a mailing list at ~tristan957/vscode-postgres-discuss@lists.sr.ht. The archive can be viewed on SourceHut.


Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.

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