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

Indent with Spaces

leondgarseleondgarse48 downloads

Make Tab indent by 2 spaces and Shift+Tab unindent by 2 spaces.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

Since Obsidian 1.8, pressing Tab with Indent using tabs turned off always inserts 4 spaces. The Tab indent size setting only controls how wide a tab character is displayed.

This plugin makes Tab indent by 2 spaces and Shift+Tab unindent by 2 spaces. The number of spaces can be changed in Settings → Indent with Spaces → Spaces per indent (1–8).

Behavior

  • Tab on a list item, or with the cursor in a line's leading whitespace: adds the indent at the start of the line.
  • Tab with several lines selected: indents every selected line, for example to move a whole code block under a list item.
  • Tab in the middle of plain text: not handled, so Obsidian or another plugin gets it.
  • Cells of Live Preview tables: not handled, so Tab / Shift+Tab move between cells as usual.
  • Shift+Tab: removes up to one indent of leading spaces (or one tab) from each selected line.
  • Tables (lines starting with |, indented or not): if Advanced Tables is enabled, Tab / Shift+Tab run its Next cell / Previous cell commands. These also work in Live Preview, where Advanced Tables' own Tab binding is turned off, and Tab on a header-only row inserts the | --- | delimiter row. Without Advanced Tables, Tab is left to Obsidian.

Limitations

  • Indenting a list item moves only that line, not its child items. Select the children as well to move them together.

Installation

Install Indent with Spaces from Settings → Community plugins → Browse.

Manual

  1. Download main.js and manifest.json from the latest release.
  2. Put them in <vault>/.obsidian/plugins/two-space-indent/ (the plugin id stays two-space-indent).
  3. Reload Obsidian and enable Indent with Spaces in Settings → Community plugins.

License

MIT

Releasing

  1. Bump version in manifest.json and add it to versions.json.
  2. Commit, then push a tag with the exact version, for example git tag 0.4.1 && git push origin main 0.4.1.

The release workflow builds the GitHub release and attaches artifact attestations for main.js and manifest.json.

HealthExcellent
ReviewPassed
About
Indent by two spaces when pressing Tab, adding two spaces at a line's start or to every selected line to move list items or code blocks. Unindent by two spaces with Shift+Tab, insert spaces up to the next two-column stop in mid-line, and leave table rows to Obsidian or table plugins.
EditingHotkeys
Details
Current version
0.4.1
Last updated
2 weeks ago
Created
2 weeks ago
Updates
6 releases
Downloads
48
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
leondgarseleondgarse
GitHubleondgarse
  1. Community
  2. Plugins
  3. Editing
  4. Indent with Spaces

Related plugins

Underline

Add underline with shortcut.

Emoji Toolbar

Quickly search for and insert emojis into your editor.

Shortcuts extender

Use shortcuts for input special symbols without language switching.

Keyshots

Add classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

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

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Advanced Tables

Improved table navigation, formatting, and manipulation.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

Footnote Shortcut

Makes creating footnotes more fun!