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

Fix Tab Size

Michael NaumovMichael Naumov3k downloads

Fixes tab size according to the settings.

Add to Obsidian
Fix Tab Size screenshot
Fix Tab Size screenshot
Fix Tab Size screenshot
Fix Tab Size screenshot
Fix Tab Size screenshot
Fix Tab Size screenshot
  • Overview
  • Scorecard
  • Updates27

Obsidian has an Indent visual width setting, and then ignores it whenever you indent with spaces: turn Indent using tabs off, set the width to 2 or 8, and pressing Tab still inserts exactly four spaces. The setting is honoured for real tab characters and hardcoded for spaces.

This plugin makes one indent insert the number of spaces you actually set, so the indentation you get is the indentation you chose. If you indent with tabs, Obsidian already draws them at your configured width and this plugin has nothing to do.

Reported on the forum.

Indent visual width 8, and Tab still inserts 4 spaces

More screenshots
With the plugin: Tab inserts the 8 you asked for Set 2, and Tab inserts 2 Indent visual width 8, and indenting still adds 4 spaces With the plugin: indenting adds the 8 you asked for Set 2, and indenting adds 2

Demo vault

The documentation is a demo vault. The feature has a note that explains what it does and why you would want it, with buttons that set both editor settings for you so you can press Tab and count the spaces.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Fix Tab Size: Open demo vault command.
  2. Downloading fix-tab-size-demo-vault.zip from the Releases. It unzips into a single fix-tab-size-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • A space indent is as wide as you configured, matching Indent visual width instead of Obsidian's hardcoded four. Applies while Indent using tabs is off; there is nothing to configure in the plugin itself. 01 Fix tab size

See also

My other Obsidian resources

Plugin Features How Fix Tab Size differs
Indent with Spaces Own Tab/Shift+Tab handlers and indent-width setting; table navigation Same indentation goal; uses core Indent visual width; no extra setting/key handler
Simple Tab Indent Zero-width space plus tab; own display width; avoids code-block parsing Alternative indentation: keeps spaces; changes their count per indent

Last searched for similar plugins on 2026-10-26.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin (id: fix-tab-size) are hidden.

If you need to enable them refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Filing an issue (for AI agents and humans)

Open issues through the issue forms, not as blank issues.

To report a bug from inside Obsidian, run the Fix Tab Size: Report a bug command. It opens the bug form with the plugin version, the Obsidian version and your operating system already filled in.

Filing from the CLI or the API (gh issue create --body, or an AI agent filing for you) skips the form, and gh issue create --template cannot load an issue form. In that case, open the matching form in .github/ISSUE_TEMPLATE/, copy every field as a ### <label> heading in the form's order, and fill in each one. Always state the plugin version, the Obsidian version and your operating system.

License

© Michael Naumov

HealthExcellent
ReviewSatisfactory
About
Fix editor tab insertion to match the Indent visual width setting. Make the Tab key insert the configured number of spaces when using spaces for indentation instead of always inserting four.
EditingFormatting
Details
Current version
1.3.0
Last updated
Last week
Created
Last year
Updates
27 releases
Downloads
3k
Compatible with
Obsidian 1.14.5+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
Michael NaumovMichael Naumovmnaoumov
mnaoumov.dev
GitHubmnaoumov
Xmnaoumov
  1. Community
  2. Plugins
  3. Editing
  4. Fix Tab Size

Related plugins

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Underline

Add underline with shortcut.

Text Format

Format selected text upper/lower/capitalize.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

List Callouts

Create simple callouts in lists.

Symbols Prettifier

Prettify the symbols with actual symbols you commonly type, like arrows.

Admonition

Admonition block-styled content.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

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.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.