Associate all source code files with your editor in macOS using duti
I use Swift Default Apps for this, which is a macOS preference pane that accomplishes the same thing for all UTIs/Apps. It's also worth checking out.
I use Swift Default Apps for this, which is a macOS preference pane that accomplishes the same thing for all UTIs/Apps. It's also worth checking out.