- Beautify
- Format Javascript, JSON, CSS, SCSS, LESS, HTML and XML using JS-Beautify.
- 5280 Installs
Readme
Beautify for Nova
Beautify integrates JS-Beautify into Nova for formatting Javascript, JSON, CSS, SCSS, LESS, HTML and XML.
Configuration
- Formatting is based on the syntax mode of the editor
- Indentation settings are inherited from the editor
- Line endings are inherited from the open document
- Other configuration options can be set as global preferences
Invoking
- Via shortcut
⌥⇧F
- Via menu
Editor > Beautify > Format
- Via command palette
⌘⇧P
and then typeFormat
Known issues
- If some configuration options do not have an effect, try disabling the 'preserve existing line-breaks' option
Screenshots
Changelog
Version 1.3
- Added config options for 'add spaces around combinators' (CSS, SCSS & LESS)
Version 1.2
- Added config options for 'unformatted tags', 'unformatted content' and 'extra lines before' (HTML & XML)
Version 1.1
- Line ending setting is inherited from the open document
- Main configuration options of JS-Beautify can be set globally
Version 1.0
- Initial release