MacOS – Change default app for file extension

high sierramacos

I just set up default app for certain file extension by mistake. Now i cannot revert it back to default, i can only set another app to open this type of file (CMD+I).

I've tried to rebuild LaunchServices then reboot, but nothing changed. I still can open .twig files with SublimeText 3

Best Answer

Duti sets associations, see https://github.com/moretension/duti/ or if you use Homebrew simply brew install duti then follow the included instructions.