Sublime as default editor

前端 未结 11 2008
误落风尘
误落风尘 2021-01-29 18:05

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

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

11条回答
  •  悲&欢浪女
    2021-01-29 18:42

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

    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.

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

提交回复
热议问题