Skip to content

ducfilan/vscode-pug-formatter

Repository files navigation

⛔ DISCONTINUED! ⛔ Please consider using prettier's plugin-pug instead!

vscode-pug-formatter

vscode-pug-formatter plugin for VS Code.

Install

  • Press F1 and select Extensions: Install Extensions.
  • Search for and select pug-formatter.

See the extension installation guide for details.

Usage

  • Press Alt+Shift+F to format the openning pug file or;
  • Right click and select "Format Document".

Supported languages

  • Jade
  • Pug

Options

  • Fill Tab - enum (default, yes, no), fill whether tab or space, default default (current document default setting).
  • Remove Div - boolean, whether remove div tag, default false.
  • Tab Size - number, when 'fill_tab' is false, fill 'tab_size' spaces, default 4.
  • Separator Space - boolean, true: The attribute separator is a space, else a comma, default is space.
  • Allow Empty Lines - whether allow blank lines, default true.

License

This software is released under the terms of the MIT license.

About

!!! DEPRECATED !!! A simple Pug/Jade formatter

Resources

Stars

Watchers

Forks

Packages

No packages published