Unibeautify
  • Install
  • Docs
  • Assistant
  • Playground
  • GitHub

›Beautifiers

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

Pretty Diff Beautifier

npm downloads GitHub Stars GitHub Issues

Edit Pretty Diff Beautifier

About

Pretty Diff beautifier for Unibeautify

PackageDocsLatest
@unibeautify/beautifier-prettydiffv0.6.0npm
unibeautifyv0.17.1npm
prettydiff2v2.2.8npm

Install

Install with npm:

npm install --save-dev unibeautify prettydiff2 @unibeautify/beautifier-prettydiff

Or with yarn:

yarn add --dev unibeautify prettydiff2 @unibeautify/beautifier-prettydiff

Usage

Add Pretty Diff to beautifiers language option. A .unibeautifyrc.json file would look like the following:

{
  "LANGUAGE_NAME": {
    "beautifiers": [
      "Pretty Diff"
    ]
  }
}

Note: The LANGUAGE_NAME should be replaced with your desired supported language name, such as C#, CSS, ColdFusion, etc.

Options

OptionC#CSSColdFusionEJSHTMLHTML+ERBHandlebarsJSONJSON5JSXJavaJavaScriptLessRiotSCSSSVGSpacebarsSwigTitanium Style SheetsTwigTypeScriptVisualforceXMLXTemplate
Align Assignments✅❌❌✅❌❌❌❌❌✅✅✅❌✅❌❌❌✅❌✅✅❌❌❌
Break Chained Methods✅❌❌✅❌❌❌❌❌✅✅✅❌✅❌❌❌✅❌✅✅❌❌❌
End With Comma❌❌❌✅❌❌❌❌❌✅❌✅❌✅❌❌❌✅❌✅✅❌❌❌
Force Indentation❌❌✅❌✅✅✅❌❌❌❌❌❌❌❌✅✅❌❌❌❌✅✅✅
Indent Comments✅❌✅✅✅✅✅❌✅✅✅✅❌✅❌✅✅✅❌✅✅✅✅✅
Indent Size✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅
Indent Style✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅
Max Preserve Newlines✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅
Multiline Ternary✅❌❌✅❌❌❌❌❌✅✅✅❌✅❌❌❌✅❌✅✅❌❌❌
Newline Between Rules❌✅❌❌❌❌❌❌❌❌❌❌✅❌✅❌❌❌✅❌❌❌❌❌
No Leading Zero❌✅❌❌❌❌❌❌❌❌❌❌✅❌✅❌❌❌✅❌❌❌❌❌
Quotes✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅
Space After Anon Function❌❌❌✅❌❌❌❌❌✅❌✅❌✅❌❌❌✅❌✅✅❌❌❌
Wrap Line Length✅✅✅✅✅✅✅❌❌✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅

FAQ

How to use Pretty Diff in Atom, VSCode, and other editors?

See the editor integration documentation for installation instructions for your editor of choice.

How to enable Pretty Diff to format on save?

See the editor integration documentation for format on save instructions for your editor of choice.

How to run Pretty Diff on all files?

You can run Pretty Diff on all of your files for every commit with Unibeautify CI.

Is there a Pretty Diff sandbox or playground?

You can quickly try Pretty Diff online with Unibeautify Playground.

← Prettiersqlformat →
  • About
  • Install
  • Usage
  • Options
  • FAQ
    • How to use Pretty Diff in Atom, VSCode, and other editors?
    • How to enable Pretty Diff to format on save?
    • How to run Pretty Diff on all files?
    • Is there a Pretty Diff sandbox or playground?
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