Set a default for a file type or link type
In the search bar, type the file extension or protocol you wish to change, such as .txt. Select the corresponding result from the list that appears. Then, choose an app from the options provided to open files of that type