Hi! I am new to Sublime Text. I have searched through ST2 settings but could not find an option to associate files with the program. Can anyone help me please?
Thank you!
Hi! I am new to Sublime Text. I have searched through ST2 settings but could not find an option to associate files with the program. Can anyone help me please?
Thank you!
Which OS? And for which file-types? Do you want it as the default opener or just add to add it to the right-click list? For Windows, the following run as .REG file will add sublime to the right click menu for all file types:
[code]Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*\shell]
@=“Sublime”
[HKEY_CLASSES_ROOT*\shell\Sublime]
@="&Sublime"
[HKEY_CLASSES_ROOT*\shell\Sublime\command]
@="“D:\PortableApps\SublimeText\sublime_text.exe” “%1"”
[/code]
This will replace all calls to notepad.exe with sublime:
[code]Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Notepad.exe]
“Debugger”="“D:\PortableApps\SublimeText\sublime_text.exe” -z"
[/code]
See more here:
stackoverflow.com/a/15340919/1781201
Thank you for your reply!
OS is Windows 7 x64.
Is there no interface in ST2 to set-up file associations?
No. Since its cross-platform would be difficult to do anyways. Better handled by external tools specific to your OS of which they are many. Or you can just use Windows “Open with” menu.