首先确定Typora安装路径:在桌面上右键单击Typora图标,选择打开文件所在的位置就可以。我的安装路径是D:\markdown\Typora
随便在哪儿创建一个记事本文件,然后重命名为typora.reg
找个文本编辑软件打开typora.reg,用记事本、Notepad++、vscode都行。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Typora]
@="Open with Typora"
"Icon"="D:\\markdown\\Typora\\Typora.exe"
[HKEY_CLASSES_ROOT\*\shell\Typora\command]
@="\"D:\\markdown\\Typora\\Typora.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Typora]
@="Open with Typora"
"Icon"="D:\\markdown\\Typora\\Typora.exe"
[HKEY_CLASSES_ROOT\Directory\shell\Typora\command]
@="\"D:\\markdown\\Typora\\Typora.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Typora]
@="Open with Typora"
"Icon"="D:\\markdown\\Typora\\Typora.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Typora\command]
@="\"D:\\markdown\\Typora\\Typora.exe\" \"%V\""