techpeace / webstorm-idiomaticjs-formatter

A configuration file for WebStorm that enables reformatting JavaScript to Idiomatic.js style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A configuration file for WebStorm that enables reformatting JavaScript to Idiomatic.js style

License:MIT License