Created
February 26, 2024 23:31
-
-
Save insane-dev/14e99bbb387da4da97f4056b808f059b to your computer and use it in GitHub Desktop.
Change MacOS Sonoma default editor to Sublime 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run in terminal | |
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.4;}' | |
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.data;LSHandlerRoleAll=com.sublimetext.4;}' | |
# IMPORTANT: You must restart your Mac for the changes to take effect. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment