Skip to content
PluginStats
View on VS Code Marketplace Fresh · Dec 6, 2026

pgFormatter has 147,286 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #1893 of 2,515 tracked listings.

Installs
147,286
Official API · Dec 6, 2026
7-day growth
+0.1%
+133 installs
30-day growth
+0.4%
+593 installs
90-day growth
—
Insufficient history
Rank
#1893
Among tracked VS Code Marketplace listings

Rating: 4.00 / 5 from 9 ratings

About pgFormatter

pgFormatter Marketplace Installs

<img align="left" src="https://user-images.githubusercontent.com/759811/210273710-b13913e2-0a71-4d9d-94da-1fe538b8a73e.gif"/> <br/>

 Would you take a quick second and ⭐️ my repo?

<br/>

A Visual Studio Code extension that formats PostgreSQL SQL, using the Perl based pgFormatter tool developed by Gilles Darold. pgFormatter supports keywords from SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011, and PostgreSQL specific keywords.

Features

  • Supports keywords from SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011 and PostgreSQL specifics keywords
  • Provides configuration to control formatting style

Installation

pgFormatter requires Perl to be installed and available. You can either add it to your PATH or set the pgFormatter.perlBinPath configuration setting.

To install this extension:

  1. Press Ctrl + Shift + X (Cmd + Shift + X on macOS), wait a moment while the list of available extensions is populated
  2. Type pgFormatter and Click "Install"

Usage

This extension is made available to files recognized as "SQL" language files in VS Code. Generally, files with the .sql extension will be recognized as SQL files. You can use the files.associations setting to customize which files are recognized as SQL files.

To use pgFormatter, you simply need to run the editor.action.formatDocument command which is, by default, mapped to the Ctrl + K, Ctrl + D (Cmd + K, Cmd + D on macOS) keyboard shortcut.

pgFormatter also works with the "editor.formatOnSave": true setting so that when when saving your file, formatting will be automatically performed.

Configuration

This extension has the following configuration settings:

  • pgFormatter.spaces - Number of spaces to indent the code (Default: 2 or from editor.tabSize option)
  • pgFormatter.tabs - Use tabs to indent code instead of spaces (Default: false or from editor.insertSpaces configuration)
  • pgFormatter.commaStart - Use preceding comma in parameter list (Default: false)
  • pgFormatter.commaBreak - In insert statement, add a newline after each comma (Default: false)
  • pgFormatter.commaEnd - Use trailing comma in parameter list (Default: true)
  • pgFormatter.noComment - Remove any comments (Default: false)
  • pgFormatter.noGrouping - Add a newline between statements in transaction regroupement (Default: false)
  • pgFormatter.noExtraLine - Do not add an extra empty line at end of the output (Default: false)
  • pgFormatter.keepNewline - Preserve empty lines (Default: false)
  • pgFormatter.functionCase - Case of the function names (Options: ["unchanged", "lowercase", "uppercase", "capitalize"]; Default: "unchanged")
  • pgFormatter.keywordCase - Case used for reserved keywords (Options: ["unchanged", "lowercase", "uppercase", "capitalize"]; Default: "uppercase")
  • pgFormatter.typeCase - Case used for data types (Options: ["unchanged", "lowercase", "uppercase", "capitalize"]; Default: "lowercase")
  • pgFormatter.formatType - Use another formatting type for some statements (Default: false)
  • pgFormatter.wrapLimit - Wrap queries at a certain length
  • pgFormatter.wrapComment - When wrapLimit is specified, comments will be wrapped too (Default: false)
  • pgFormatter.placeholder - Regex to find code that must not be changed
  • pgFormatter.extraFunction - Path to file containing a list of function names to use the same formatting as PostgreSQL internal functions
  • pgFormatter.noSpaceFunction - Remove the space character between a function call and the open parenthesis that follows (Default: true)
  • pgFormatter.pgFormatterPath - Path to custom pg_format version
  • pgFormatter.perlBinPath - The path to the perl executable (Default: "perl")
  • pgFormatter.configFile - The absolute path to a pg_format config file. You can use a VS Code path variable to help resolve the absolute path (example: ${workspaceFolder}/pg_format.conf). Note: The default settings for this extension may override some config in this file but you can specify a setting value to null to avoid this. For example, if you want to use no-space-function config in a pg_format.conf file and do not want the extension default to override it, you can specify "pgFormatter.noSpaceFunction": null in your VS Code settings.
Ignoring Files

To ignore a file and prevent it from being formatted, you can simply add a comment on the first line of the file with the contents: "pgFormatter-ignore". For example:

-- pgFormatter-ignore

select id from people;

Description from the VS Code Marketplace listing.

  • Formatting
  • pgsql
  • postgres
  • PostgreSQL
  • sql

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

pgFormatter installs on VS Code Marketplace, last 90 days: 147,286 installs as of Dec 6, 2026.pgFormatterInstalls on VS Code Marketplace · Last 90 days147,286installs146.2K146.4K146.6K146.8K147K147.2K147.4KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
pgFormatter installs on VS Code Marketplace, last 90 days: 147,286 installs as of Dec 6, 2026.

7/30/90-day growth

pgFormatter installs growth on VS Code Marketplace: +0.1% over 7 days, +0.4% over 30 days, 90-day growth unavailable.pgFormatterInstalls growth on VS Code Marketplace147,286installs now7-day growth+133 installs+0.1%30-day growth+593 installs+0.4%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
pgFormatter installs growth on VS Code Marketplace: +0.1% over 7 days, +0.4% over 30 days, 90-day growth unavailable.

Ranking history

pgFormatter VS Code Marketplace ranking history: currently #1893 (by installs).pgFormatterVS Code Marketplace ranking · by installs · Last 90 days#1893current rank#1882#1884#1886#1888#1890#1892#1894#1896Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
pgFormatter VS Code Marketplace ranking history: currently #1893 (by installs).

Ratings over time

pgFormatter ratings on VS Code Marketplace, last 90 days: 9 ratings as of Dec 6, 2026.pgFormatterRatings on VS Code Marketplace · Last 90 days9ratings88.599.510Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
pgFormatter ratings on VS Code Marketplace, last 90 days: 9 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,258 shown · page 95, #17 (overall #1,897)
All VS Code Marketplace: every listing in installs order

Listing placement

Programming Languages795 listings · 40 pages · page 32, #1 (overall #621)
Programming Languages: every listing in installs order

Listing placement

Formatters284 listings · 15 pages · page 11, #18 (overall #218)
Formatters: every listing in installs order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (50)
Recent installs observations for pgFormatter
Date (UTC)InstallsChange vs. previous
147,286+5
147,281+28
147,253+14
147,239+38
147,201+21
147,180+20
147,160+7
147,153+21
147,132+14
147,118+23
147,095+24
147,071+27
147,044+34
147,010—

Similar VS Code Marketplace Programming Languages plugins

All 20 pgFormatter alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=bradymholt.pgformatter. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.