Prettier Chrome Extension

★★★★★
★★★★★
1,000+ users
<
>
TradingView is the best place to be for accessing all markets.
★★★★★
★★★★★
e.l.f. Halo Glow Contour Beauty Wand Light/Medium
★★★★★
★★★★★
Dorothy Of Oz Copyright 1989 Baum/miles
★★★★★
★★★★★
Halex 3/8 in. Non-Metallic Push-In Connector (10-Pack)
★★★★★
★★★★★
DMC Stranded Cotton Embroidery Thread 453 - per Skein
★★★★★
★★★★★
Trump Vance 2024 Plastic Yard Sign
★★★★★
★★★★★

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


sebmarkbage(https://twitter.com/sebmarkbage/status/843866641515536384) had an idea for a tool that will format your JavaScript code that is not in your code editor/IDE. This is the implementation I came up with.

Usage

1. Install
2. Ensure your code fences are defined as JS blocks (```js var abc = 123; ```)
3. 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.
Related