So I used Xcode and all. Now, whenever I open my text files it opens automatically with Xcode. How do I undo this?
3 Answers
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

- Choose one from the Open With drop down. This will be set as default application and is used in future if opened the
.txtfile.
-
3I'm about 99% certain while this method will allow you to choose an application other than the default to open the file, it will not change the default setting for that file type. Specifically, I open m4v files with QuickTime using this method and the default has never been anything other than iTunes. Mar 7, 2011 at 21:51
-
1Just confirmed, this method does not change the default file association. Please edit your question to remove this information or add a working method. Mar 7, 2011 at 21:55
-
This does not work for some applications (in my case I tried to use an .app I compiled from Applescript). Instead, it reverts to the default app for the file type is you select it using "Change All..."– NorswapMar 27, 2014 at 0:06
Right-click any text-file an select "Get-info", then choose your preferred Text-editor under "Open with" and click "Change all..."
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/