• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

pg-formatter

A PostgreSQL SQL syntax formatter for Atom (using pgFormatter)
  • #sql
  • #postgresql
alexfedoseev
0.0.1 11,324
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-pg-formatter

A PostgreSQL SQL syntax formatter for Atom.

Demo

Atom integration for the pg-formatter, which is a Node.js wrapper of pgFormatter.

Features

  • Format selected text or a whole file via keyboard shortcut or command.
  • Format SQL files on save.

Installation

Search for pg-formatter in Atom UI.

Or get it via command line:

apm install pg-formatter

Usage

Hit Ctrl-Alt-F to format selected text (or a whole file).

Or define your shortcut:

'ctrl-alt-p': 'pg-formatter:format'

Also, you can automatically format SQL files on save (disabled by default).

Configuration

See pg-formatter options.

You can enable formatting SQL files on save. By default package formats files within source.sql scope, but you can configure it via package settings.

Use Editor: Log Cursor Scope command to find out a scope for a current file.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by