Skip to content

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

License

Notifications You must be signed in to change notification settings

techpeace/webstorm-idiomaticjs-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published