Sublime 作为默认编辑器 [英] Sublime as default editor

查看:76
本文介绍了Sublime 作为默认编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将 Sublime Text 设置为 Windows 7 上文件格式的默认文本编辑器?

Is there a way to set Sublime Text as the default text editor for file formats on Windows 7?

另外,如果有人知道 Sublime Text 教程或 Wiki,那将会非常有帮助.

Also, if anyone knew a Sublime Text Tutorial or Wiki that would be really helpful.

推荐答案

其实这不是我的答案,我只是谷歌搜索:

Actually it is not my answer, I have just googled it:

  1. 打开 regedit(Win+R,输入regedit",选择 OK).
  2. 导航到HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
  3. 验证路径是否准确,如果不正确则更正.退出注册表.
  4. 通过Ctrl+Alt+Del(或Ctrl+Shift+Esc(对于更高版本的 Windows),杀死 explorer.exe,去运行(Win+R)并输入explorer.exe".exe"(或跳过此步骤并重新启动).
  5. 现在尝试同样的事情,右键单击一个文本文件,打开方式,导航到 sublime,它现在应该出现在可用应用程序列表中.
  1. Open regedit (Win+R, type "regedit", select OK).
  2. Navigate to HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
  3. Verify that the path is accurate, correct it if it is not. Exit regedit.
  4. Open task manager via Ctrl+Alt+Del (or Ctrl+Shift+Esc for later versions of Windows), kill explorer.exe, go to run (Win+R) and type "explorer.exe" (or skip this step and simply reboot).
  5. Now attempt the same thing, right click a text file, open with, navigate to sublime, and it should now appear in the list of available applications.

对我来说,该值指向以前放置便携式版本的桌面.因此它只是不起作用.

For me that value pointed to the Desktop where portable version previously was placed. Thus it just didn't work.

附言对我来说不需要重启或注销 (WinXP).

P.S. And for me the reboot or logout were not necessary (WinXP).

这篇关于Sublime 作为默认编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆