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 Automatically with Prettier

dylanarmstrongdylanarmstrong756 downloads

Format files with Prettier using built-in settings for configuration.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates8

This is a formatting plugin for Obsidian.

It uses the built-in settings for tabs and tab spacing so it doesn't require configuration.

Differences from Other Projects

Unlike alexgavrusev/obsidian-format-with-prettier, there's no configuration available. The common prettier settings, tabs and number of spaces are taken from the official settings under Editor.

Installation

Install from community plugins.

Or unzip the latest release into .obsidian/plugins folder of your vault.

Usage

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

Additionally, a "Format current file" command is available.

Customization

This plugin only provides two options to prettier, namely tabWidth and useTabs. They are taken via the Editor settings. Beyond that, there's no customization provided.

Credits

Significant inspiration taken from alexgavrusev/obsidian-format-with-prettier and platers/obsidian-linter.

License

MIT License, for more details see License

77%
HealthExcellent
ReviewSatisfactory
About
Format Markdown with Prettier using Obsidian's editor tab and spacing settings. Enable format-on-save or run the Format current file command to tidy up files with no extra configuration.
FormattingMarkdownAutomation
Details
Current version
0.2.0
Last updated
12 months ago
Created
Last year
Updates
8 releases
Downloads
756
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
dylanarmstrongdylanarmstrong
dylan.is/
GitHubdylanarmstrong
  1. Community
  2. Plugins
  3. Formatting
  4. Format Automatically 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.

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.

Columns

Create columns in Markdown.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Homepage

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

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

BRAT

Easily install a beta version of a plugin for testing.