I want sublime text to open all the file types it supports. For e.g., if I double click on .hpp
file, Xcode tries to open it. I want sublime text to open the file. I've looked at RCDefaultApp, but it doesn't do the job.
How to make sublime text the default file viewer for all file types it supports
sublimetexttext-editor
Related Question
- MacOS – Replace Text Edit as the default text editor
- How to open a new c++ file with a predefined template in Sublime Text
- Set bash_profile to open with Sublime Text 2 by default
- MacOS – Text file preview failing in Finder (perhaps due to Sublime Text?)
- Open file in Sublime Text tab via AppleScript
- MacOS – Replace TextEdit as the default text editor in MacOS Big Sur
Best Answer
Select an .hpp document and get info on it (command-i). In the resulting window, you will see an "Open with" section. Select the appropriate app to open it with from the little menu and then press the "change all" button immediately below that menu. That will change all the .hpp files to default open with the app you chose.
To do this categorically (for multiple file types at once), I'm not so sure...
Good luck!