Skip to content

Files

Latest commit

f2910a3 · Jan 10, 2016

History

History
22 lines (14 loc) · 1.06 KB

README.md

File metadata and controls

22 lines (14 loc) · 1.06 KB

WebStorm Idiomatic.js Formatter

This is a configuration file for WebStorm that enables reformatting JavaScript to the Idiomatic.js style.

Installation

  1. Quit WebStorm.
  2. Determine the location of your Webstorm configuration. You're looking for the codestyles directory.
  3. Copy the Idiomatic.xml file to the codestyles directory. The following command will pull this down for you when run within codestyles:
$ curl -O https://raw.githubusercontent.com/techpeace/webstorm-idiomaticjs-formatter/master/Idiomatic.xml
  1. Launch WebStorm, and head to Preferences > Editor > JavaScript.
  2. Set "Scheme" to "Idiomatic".

You're all set! Now you can run Code > Reformat Code from the menu to automatically reformat your code to the Idiomatic.js style.

Credits

This config file originally started life in a comment made by @petrKoukal on the idiomatic.js repo.