Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Format with Prettier

alexgavrusevalexgavrusev6k downloads

Format files in your vault using Prettier.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates23

Format files in your Obsidian vault using Prettier

Installation

Unzip the format-with-prettier.zip from the latest release into the .obsidian/plugins folder of your vault.

Note that you might have to reopen your vault for the plugin to show up under "Installed plugins"

Usage

Format on save is enabled by default, and can be changed under plugin settings

Additionally, a "Format current file" command is available

Customization

The plugin fill look for a prettierrc.json (note the lack of . at the start of the file) in the root folder of your vault. In it, you can configure Prettier as you normally would

Formatting the entire vault at once

Use the Prettier CLI:

$ cd YOUR_VAULT_FOLDER
$ echo '**/.obsidian' > .prettierignore
$ npx prettier . --write --config prettierrc.json

License

MIT © Aliaksandr Haurusiou.

HealthExcellent
ReviewSatisfactory
About
Format files in your Obsidian vault with Prettier to keep Markdown and supported files consistently styled. Enable format-on-save or run the Format Current File command, and control formatting with a prettierrc.json placed at the vault root.
FormattingMarkdownAutomation
Details
Current version
0.21.0
Last updated
3 weeks ago
Created
3 years ago
Updates
23 releases
Downloads
6k
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
alexgavrusevalexgavrusev
gavrusev.dev
GitHubalexgavrusev
  1. Community
  2. Plugins
  3. Formatting
  4. Format with Prettier

Related plugins

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Auto Link Title

Automatically fetches the titles of links from the web.

Blur

Create obfuscated blocks of text.

Link Embed

Convert URLs in your notes into embeded previews.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

BRAT

Easily install a beta version of a plugin for testing.

Advanced URI

Control everything with URI.

Custom Frames

Turn web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.

QuickAdd

Quickly add new notes or content to your vault.