vscode-xmind
XMind mind map editor for VS Code.
在 VS Code 中查看与编辑 XMind 思维导图。
Open any .xmind file and the map renders in a custom editor tab.
双击任意 .xmind 文件即可在标签页中查看导图,改动用 Ctrl/Cmd+S 存回原文件。
Features
- Renders XMind Zen / 2020+ archives (
content.json) with SVG.
XMind 8 (content.xml) is not supported.
- Editing like Feishu 思维笔记:
Tab child, Enter sibling, Shift+Tab
parent, double click to rename, drag to re-parent.
- Text styles (bold, italic, underline, colours), a done state, notes,
hyperlinks and images.
- Undo, redo, fit, zoom, search and collapse-all canvas controls.
- Saves merge into
content.json by topic id, so fields this extension
does not understand survive the round trip.
- Images load from the archive on demand; the editor host keeps no
image bytes in memory.
- Oversized maps fall back to an indented outline instead of freezing.
- Failures show a named panel (missing content, unsafe archive,
malformed JSON, parse timeout) instead of a blank tab.
- Follows the active light / dark / high-contrast theme.
- Wheel to scroll, ctrl+wheel to zoom, drag to pan, arrows to navigate.
Usage
- Install the extension.
- Open a workspace containing
.xmind files.
- Click a
.xmind file in the Explorer.
To get the raw XML back, use "Reopen With..." and pick the text editor.
Limitations
- Only
content.json is rewritten; content.xml is left untouched.
- An image can be added but not removed.
- XMind 8 files (
content.xml only) are rejected with a named error.
- Maps above 2,000 topics render as an outline.
- Only
http(s) hyperlinks survive into the preview.
Development
npm install
npm run build # dist/extension.cjs + dist/webview.js
npm test # node --test
npm run package # produces vscode-xmind-<version>.vsix
The .xmind files in the repository root are test fixtures and are
excluded from the package by .vscodeignore.
License
MIT
| |