• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

jade-beautify

Simple Jade Beautify
  • #jade
  • #beautify
  • #formatter
vingorius
44,598
35
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Jade-beautify package for Atom Editor

This tiny program only beautify a jade file.

The idea is from @pjbrow.

Note : This program depends on pug-beautify module.

Installation

To install jade-beautify,at atom, Packages >> Setting View >> Open or Ctrl-comma. Click install tab, search 'jade-beautify' and install it. Or just type below.

apm install jade-beautify

Usage

To reformat jade indent, click ctl-alt-o. When you check 'Force beautify on save'(default is 'checked'), reformat it automatically. It works on save-all event also.

Settings

  • Force beautify when save : when checked, jade-beautify format it automatically on save event. default checked.
  • Force beautify modified one when save-all: when checked, jade-beautify format it automatically on save-all event. but only modified one. default unchecked.
  • Indent with tabs : when checked, jade-beautify fill indent as tab, when not spaces. default is checked.
  • Omit div tag : when checked, jade-beautify omit div tag. default unchecked.

To leave Issues

Please visit on https://github.com/vingorius/jade-beautify/issues

TODO

  • [X] only work for jade file
  • [ ] write test

Below From @jerone on https://github.com/Glavin001/atom-beautify/issues/199

  • [X] As @pjbrow mentions, indention alignment is one that a beautifier could solve.
  • [X] As JetBrains mentions, tabs to spaces and visa versa.
  • [X] Omit the div element when it has a class or id.
  • [ ] Force/remove comma's , between attributes.
  • [ ] Force/remove spaces between attributes.
  • [ ] For negated conditions use unless.
  • [ ] Use basic pattern for clean escaped string interpolation, e.g. div= value instead of div #{value}.
  • [ ] Force space after basic escaped string interpolation, e.g. div= value instead of div=value.
  • [ ] Use block expansion for simple nested tags.
  • [ ] Self closing tags.
  • [ ] Format multiple places where normal JS is allowed.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by