Unibeautify
  • Install
  • Docs
  • Assistant
  • Playground
  • GitHub

›Usage

About

  • What is Unibeautify
  • Unibeautify CI
  • Credits

Usage

  • Getting Started
  • Command-Line Interface (CLI)
  • Configuration File
  • Language Options
  • Beautifier Options
  • Supported Languages
  • Editor Integration

Contributing

  • Examples

Integrations

  • GitHub
  • GitLab
  • Bitbucket

Beautifiers

  • Black
  • Brittany
  • ClangFormat
  • CSScomb
  • ESLint
  • Gofmt
  • JS-Beautify
  • PHP-CS-Fixer
  • PHP_CodeSniffer
  • Prettier
  • Pretty Diff
  • sqlformat
  • stylelint
  • TSLint
  • YAPF
Edit

Language Options

Click on an option title below for more information including how to configure and examples.

#TitleConfig KeyDescription
1Align Assignmentsalign_assignmentsIf lists of assignments or properties should be vertically aligned for faster and easier reading.
2Arrow Parensarrow_parensRequire parenthesis in arrow function arguments
3Brace Stylebrace_styleBrace style
4Break Chained Methodsbreak_chained_methodsBreak chained method calls across subsequent lines
5Comma Firstcomma_firstPut commas at the beginning of new line instead of end
6End With Commaend_with_commaIf a terminating comma should be inserted into arrays, object literals, and destructured objects.
7End With Newlineend_with_newlineEnd output with newline
8End With Semicolonend_with_semicolonInsert a semicolon at the end of statements
9Force Indentationforce_indentationif indentation should be forcefully applied to markup even if it disruptively adds unintended whitespace to the documents rendered output
10Identifier Caseidentifier_caseCase type for identifiers
11Indent Chained Methodsindent_chained_methodsIndent chained method calls
12Indent Commentsindent_commentsDetermines whether comments should be indented.
13Indent Inner Htmlindent_inner_htmlIndent and sections.
14Indent Scriptsindent_scriptsIndent scripts
15Indent Sizeindent_sizeIndentation size/length
16Indent Styleindent_styleIndentation style
17JSLint Happyjslint_happyEnable jslint-stricter mode
18JSX Bracketsjsx_bracketsPut the > of a multi-line JSX element at the end of the last line
19Keep Array Indentationkeep_array_indentationPreserve array indentation
20Keyword Casekeyword_caseCase type for keywords
21Max Preserve Newlinesmax_preserve_newlinesNumber of line-breaks to be preserved in one chunk
22Multiline Ternarymultiline_ternaryEnforces new lines between the operands of a ternary expression
23Newline Before Tagsnewline_before_tagsList of tags which should have an extra newline before them.
24Newline Between Rulesnewline_between_rulesAdd a newline between CSS rules
25No Leading Zerono_leading_zeroIf in CSS values leading 0s immediately preceeding a decimal should be removed or prevented.
26Object Curly Spacingobject_curly_spacingInserts a space before/after brackets for object literals, destructuring assignments, and import/export specifiers
27Pragma Insertpragma_insertInsert a marker at the top of a file specifying the file has been beautified
28Pragma Requirepragma_requireRestrict beautifying files to only those with a pragma at the top
29Preserve Newlinespreserve_newlinesPreserve line-breaks
30QuotesquotesConvert the quote characters delimiting strings from either double or single quotes to the other.
31Remove Trailing Whitespaceremove_trailing_whitespaceRemove trailing whitespace
32Selector Separator Newlineselector_separator_newlineAdd a newline between multiple selectors
33Space After Anon Functionspace_after_anon_functionAdd a space before an anonymous function's parentheses. ie. function ()
34Space Before Conditionalspace_before_conditionalAdd a space before conditional, if(true) vs if (true)
35Space In Empty Parenspace_in_empty_parenAdd padding spaces within empty parentheses, ie. f( )
36Space In Parenspace_in_parenAdd padding spaces within parentheses, ie. f( a, b )
37Unescape Stringsunescape_stringsDecode printable characters encoded in xNN notation
38UnformattedunformattedList of tags (defaults to inline) that should not be reformatted
39Wrap Attributeswrap_attributesWrap attributes to new lines
40Wrap Attributes Indent Sizewrap_attributes_indent_sizeIndent wrapped attributes to after N characters
41Wrap Line Lengthwrap_line_lengthWrap lines at next opportunity after N characters
42Wrap Prosewrap_proseWrap markdown text to new lines
← Configuration FileBeautifier Options →
Unibeautify
Docs
Getting StartedCLIConfigurationOptions
Community
User ShowcaseStack Overflow@Unibeautify on TwitterFollow Unibeautify on Twitter
More
GitHubStar Unibeautify on GitHubCode coverage of UnibeautifyCode coverage of Unibeautify
© 2020 Glavin Wiechert
Credits