Skip to content

Instantly share code, notes, and snippets.

@insane-dev
Created February 26, 2024 23:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insane-dev/14e99bbb387da4da97f4056b808f059b to your computer and use it in GitHub Desktop.
Save insane-dev/14e99bbb387da4da97f4056b808f059b to your computer and use it in GitHub Desktop.
Change MacOS Sonoma default editor to Sublime 4
# 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