Skip to content

alex35mil/atom-pg-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A PostgreSQL SQL syntax formatter for Atom

Resources

Stars

Watchers

Forks

Packages

No packages published