This is a configuration file for WebStorm that enables reformatting JavaScript to the Idiomatic.js style.
- Quit WebStorm.
- Determine the location of your Webstorm configuration. You're looking for the
codestyles
directory. - Copy the
Idiomatic.xml
file to thecodestyles
directory. The following command will pull this down for you when run withincodestyles
:
$ curl -O https://raw.githubusercontent.com/techpeace/webstorm-idiomaticjs-formatter/master/Idiomatic.xml
- Launch WebStorm, and head to Preferences > Editor > JavaScript.
- 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.
This config file originally started life in a comment made by @petrKoukal on the idiomatic.js repo.