Skip to content

xmind常用配置

xind 不能默认打开对应文件问题

在xmind文件中新建 xmind.bat 文件

E:
cd E:\{xmind dir}
start XMind.exe %1%

右键打开方式,使用该bat文件打开

vscode 打开xmind文件

试过vscode 几个 Open 插件均无效,但我测试可以使用task去打开

添加tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "xmind",
            "type": "process",
            "command": "E:/{XMind dir}/XMind.bat",
            "args": [
                "${file}"
            ],
            "problemMatcher": [],
        }
    ]
}

type 一定要使用 process 否则只能打开 XMind, 这样点开 对应xmind文件 运行 run task 即可

进一步方便打开

如果嫌运行命令行太麻烦,只需如下配置,

下载以下插件

Task Buttons
v1.1.3
spencerwmiles

setting配置

"VsCodeTaskButtons.showCounter": false,
"VsCodeTaskButtons.tasks": [
    {
        "label": "🔥 open xmind",
        "task": "xmind"
    }
]

这下可使用左下任务栏打开任务了,happy

Comments