虽然通过绑定后缀的方法可以用sublime打开指定文件, 但是碰到那种直接调用默认编辑器的软件来说, 打开的还是记事本(如果没装其他编辑器的话). 找到一个造福sublime党的开源软件, 用sublime直接替代记事本, 达到默认效果.
地址如下:
方法很简单, 安装 README
说的做就行了
- Download the ZIP file from the ZIP folder.
- Extract the three files in the ZIP (SublimeLauncher.exe, ReplaceNotepad.bat and RevertNotepadRedirection.bat) to the same directory as Sublime Text itself.
- Run ReplaceNotepad.bat. You will need to “Run as Administrator” if using Vista/Win7.