Make Cursor the default editor for all supported filetypes

Is there a way to make editor the default editor for all supported file types (on Mac)? It would be great to have it open when I click on a (supported) file as opposed to XCode. I work with a lot of different files so manually setting each via OS side settings is nearly impossible.