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.
First go to the windows settings menu, click on the Apps settings. From there click Default Apps, scroll down until you see "choose default app by file type". Click that option, then scroll to the file extension ". txt", and click the gray plus arrow beside it and select sublime text.
One: Set up a sublime. desktop file in ~/. local/share/applications Sublime comes with this file in the same directory as the sublime_text executable (the sublime_text application directory), so you may need to change the first argument to match your file structure.
Actually it is not my answer, I have just googled it:
HKEY_CLASSES_ROOT\Applications\sublime_text.exe\shell\open\command
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).
Edit on Nov 21, 2014
Tim Lewis pointed out in the comment that there is a more generic version at http://www.binaryfortress.com/NotepadReplacer/, which works better.
Original Answer
Try this: https://github.com/grumpydev/Sublime-Notepad-Replacement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With