Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lodestone/d7817460ed64b75bd27d2e83b6e1e279 to your computer and use it in GitHub Desktop.
Save lodestone/d7817460ed64b75bd27d2e83b6e1e279 to your computer and use it in GitHub Desktop.
HOWTO: Dissassociate/Unassociate Xcode from ALL file types in one fell swoop!

HOWTO: Disassociate/Unassociate File Types From a Mac App

I got super tired of Xcode opening everything: .rb, .sh, etc etc etc....

Here is how to stop Xcode from opening everything!

NOTE: It may be helpful to know that I found the lsregister command right here:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/Current/Support/lsregister

Extra Points

I created a symlink as well.

 ln -s /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/Current/Support/lsregister ~/bin/lsregister

Actual Usage

Finally, here is how disassociate all file types from the Xcode app.

lsregister -u /Applications/Xcode.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment