Skip to content

Latest commit

 

History

History
executable file
·
25 lines (13 loc) · 922 Bytes

README.md

File metadata and controls

executable file
·
25 lines (13 loc) · 922 Bytes

Prettier Chrome Extension

Format your JavaScript code using the Prettier library on any editable element (textarea and input[type=text], for now) in Chrome.

Usage

  1. Install from the Chrome Web Store to get started.
  2. Ensure your code fences are defined as JS blocks:

```js

var abc = 123;

```

  1. Format your code via a handy context menu.

Options

All the options that are defined in Prettier API are available to be set using the extensions options page.

Thanks!

Thanks Sebastian Markbåge for the idea, Prettier, and Samuel Simões for the boilerplate.