Search code examples
atom-editoratom-beautify

atom-beautify: indent html with tabs


How can I set the indent size of html to tab in atom-beautifier ? I tried the following in .jscsrc but it doesn't have any effect.

{
  "html": {
    "indent_char": "    ",
    "indent_size": 1,
    "indent_with_tabs": true
  }
}

Solution

  • The atom-beautifier package is deprecated and the author has suggested that users migrate to the atom-beautify package:

    Please use: https://atom.io/packages/atom-beautify It's much better :)

    The atom-beautify package supports a .jsbeautifyrc to configure the indent size:

    {
      "indent_size": 2,
      "indent_char": " ",
      "other": " ",
      "indent_level": 0,
      "indent_with_tabs": false,
      "preserve_newlines": true,
      "max_preserve_newlines": 2,
      "jslint_happy": true,
      "indent_handlebars": true
    }