Format your JavaScript code using the Prettier library on any editable element (textarea
and input[type=text]
, for now) in Chrome.
- Install from the Chrome Web Store to get started.
- Ensure your code fences are defined as JS blocks:
```js
var abc = 123;
```
- Format your code via a handy context menu.
All the options that are defined in Prettier API are available to be set using the extensions options page.
Thanks Sebastian Markbåge for the idea, Prettier, and Samuel Simões for the boilerplate.