Skip to content

Change the default beautifier for a given language

Austin Cheney edited this page Sep 9, 2015 · 1 revision
  1. Here are all of the documented options: https://github.com/Glavin001/atom-beautify/blob/master/docs/options.md I recommend using the Atom Beautify package settings and finding the options you want. There are a lot.

  2. To switch from JS Beautify to Pretty Diff (or the opposite) use Language Config - JavaScript - Default Beautifier: https://github.com/Glavin001/atom-beautify/blob/master/docs/options.md#language-config---javascript---default-beautifier

  3. Be aware of the beautifier's option names and the similarly supported option name in Atom Beautify. For instance the vertical option for Pretty Diff is called align_assignments in Atom Beautify: https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/prettydiff.coffee#L24 or you can set it in your .jsbeautifyrc file with something like:

    { "js": { "align_assignments": true } }