Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Nunjucks Template FormatterNew to Visual Studio Code? Get it now.

Nunjucks Template Formatter

Nanda Okitavera

|
33,194 installs
| (3) | Free
Formatter for Nunjucks template
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Nunjucks Template Formatter

license: MIT code style: prettier

Formatter for Nunjucks template. built on top of prettydiff2.

Features

  • Respect YAML-frontmatter data
  • Accept other prettydiff2 options (limited), see below

Installation

Available at Visual Studio Marketplace

ext install okitavera.vscode-nunjucks-formatter

Configuration

Keep YAML front-matter data.

default: true

"nunjucksFormat.frontMatterData": true
Force an Empty Line Above Comments.

default: false

"nunjucksFormat.commline": false
End Self-Closing Tags with a Space.

default: false

"nunjucksFormat.spaceclose": false
Indent Style/Script independently.

default: false

"nunjucksFormat.style": false
Merge Empty Tag Sets Into A Single Self-Closing Tag.

default: false

"nunjucksFormat.tagmerge": false
Sort Child Items of Each Parent Element tagsort.

default: false

"nunjucksFormat.tagsort": false
Preserve white space in text Content

default: true

"nunjucksFormat.textpreserve": true
Preserve HTML tag and attributes

default: true

"nunjucksFormat.unformatted": true
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft