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.
谷歌浏览器、其他Chromium内核的浏览器
为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效