问题
So I used Xcode and all. Now, whenever I open my text files it opens automatically with Xcode. How do I undo this?
回答1:
RightClick on the file name -> Open With -> Choose the editor you wish to open with this kind of file. And that sets to be default editor for opening files with that particular file extension ( i.e., .txt ) when opened in future.
Edit: The above procedure is not a permanent one. Try this -
- Right click on the file name.
- Choose Get Info
![](https://www.eimg.top/images/2020/03/19/e3e4fe65d75e273960f346d1d3dac310.png)
- Choose one from the Open With drop down. This will be set as default application and is used in future if opened the
.txt
file.
回答2:
Right-click any text-file an select "Get-info", then choose your preferred Text-editor under "Open with" and click "Change all..."
回答3:
You can change program association by right clicking on your file and clicking on "Get Info". This will bring up another dialog in which you can change the program associated with that file type.
You can find visual instructions here: http://osxdaily.com/2009/10/25/change-file-associations-in-mac-os-x/
来源:https://stackoverflow.com/questions/5224831/how-to-change-file-associations-in-mac-os-x