Sublime as default editor

doque picture doque · Feb 26, 2012 · Viewed 74k times · Source

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 helpful.

Answer

avp picture avp · Aug 2, 2012

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).