Set VS Code as Default Program for All Code Files (Mac)
Every goddamn time I set up a new Mac, I have to dig around to find that one Terminal CLI command that sets default programs (it’s called duti). Then I loop through every file type I can think of and manually execute the command to change it. And every time, I forget an extension and end up cursed—accidentally opening Xcode for that file type for the rest of time. And every time, I swear next time will be the time I automate this.
That time has finally come.