A command line tool to convert a JS Beautifier code style to an IntelliJ formater configuration file.
js-beautify-converter has to be installed globally to install the command. The globaly installed command will look for a local installation to execute.
npm install -g git+ssh://[email protected]:jraoult/js-beautify-converter.git
npm install git+ssh://[email protected]:jraoult/js-beautify-converter.git
IntelliJ IDEA closed and from the project root, run:
js-beautify-converter
By default it looks for a file named .jsbeautifyrc and generates .idea/codeStyleSettings.xml. Input and output files can be specified both absolutely and relatively:
js-beautify-converter the-code-style.json my-intellij-cs-file.xml
I try to support as many options as possible whne it makes sense. Some options don't have an equivalence in IntelliJ.
indent_sizeindent_charpreserve_newlinesmax_preserve_newlinesspace_in_parenspace_after_anon_functionwrap_line_length
So far, I tested js-beautify-converter with:
- IntelliJ IDEA 13
- IntelliJ IDEA 14