所有快捷键都可在 VS Code Preferences → Keyboard Shortcuts 中自定义。“Adjust Heading Tree Help” 按钮可快速打开对应设置。
许可
MIT License
English Guide
Adjust Heading in Tree is a VS Code extension for Markdown and Typst documents. It provides navigation trees, drag-and-drop rearrangements, and batch hierarchy adjustments so you can manage entire sections like modular blocks.
Features
Title structure navigation: Display the heading hierarchy formed by Markdown # and Typst = in the sidebar, with expand, collapse, and click-to-jump support.
Drag-and-drop reorder: Move a heading and its subtree to a new location while preserving document structure.
Peer-level quick sort: Use inline buttons or shortcuts to move a heading block up or down within the same parent.
Batch hierarchy shift: Promote or demote selected headings together with their subtrees in one action.
Hierarchy depth control: Set the maximum expanded level of the navigation tree via toolbar buttons.
Help panel: Open a consolidated help view with all common actions and shortcut references.
Shortcuts
Action
Windows / Linux
macOS
Promote heading level
Ctrl + Shift + ←
Cmd + Shift + ←
Demote heading level
Ctrl + Shift + →
Cmd + Shift + →
Move up (same level)
Ctrl + Shift + ↑
Cmd + Shift + ↑
Move down (same level)
Ctrl + Shift + ↓
Cmd + Shift + ↓
Toggle tree visibility
Ctrl + Shift + T
Cmd + Shift + T
All shortcuts can be customized via VS Code Preferences → Keyboard Shortcuts. The "Adjust Heading Tree Help" command opens the relevant settings instantly.