sindresorhus / atom-esformatter

Beautify JavaScript

Home Page:https://atom.io/packages/esformatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecated

The esformatter project is no longer maintained.


esformatter

Beautify JavaScript using esformatter

Issues with the output should be reported on the esformatter issue tracker.

Install

$ apm install esformatter

Or, Settings → Install → Search for esformatter

Usage

Open the Command Palette and type esformatter.

Can also be run on just a selection. For example the code in a <script> tag.

There's a Format On Save option in the settings.

Info

This plugin will first try to import the esformatter dependency in your project. If one can't be found, it will fall back to the bundled one with the following plugins (PR welcome for more).

Config

Add the plugins you want to your config file:

{
	"plugins": [
		"esformatter-braces"
	]
}

Keyboard shortcut

Set the keyboard shortcut you want in your keymap:

'atom-text-editor':
	'cmd-shift-x': 'esformatter'

License

MIT © Sindre Sorhus

About

Beautify JavaScript

https://atom.io/packages/esformatter

License:MIT License


Languages

Language:JavaScript 93.5%Language:HTML 6.5%