Sublime Forum

How to register new file type to Sublime

#1

Hi All,

How to register new file type to be open by Sublime?

When I go to the Default App -> Choose Default Apps by File Type in Windows 10, an option to assign a certain file type to be assigned to Sublime doesn’t appear (Sublime doesn’t appear in the options list).

Thank you!

0 Likes

#2

is there not an option to “Browse” to the executable? i.e. subl.exe in the ST installation directory?

0 Likes

#3

No, there is just an option “Look for an app in the Microsoft Store”… There is no the “Browse” option …

0 Likes

#4

The trick should be to register ST for the “Open With List” of * (all file types).

; Register Sublime Text for "Open With..."
; https://docs.microsoft.com/en-us/windows/win32/shell/app-registration
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\OpenWithList\sublime_text.exe]

Not sure if the installer does so at the moment as I use portable setup with an hand crafted registry file to set things up.

Sorry, have screenshots in German only, but … in the open with dialog click the red label to look for suitable apps on your PC.

grafik

ST should be in the list then.

grafik

0 Likes