Important: The information in this document is obsolete and should not be used for new development.
Xcode lets you choose the editors used for
the files in your project. You can use Xcode’s built-in editor
or use an external editor such as BBEdit. Generally, Xcode uses
the filename extension to choose how to edit a file. For example,
it edits an .rtf file
with its own built-in RTF editor and a .c file
with its own built-in source code editor.
You can temporarily change how a file is viewed, or permanently change how files of a certain type are viewed. To change how a file is viewed, you can do any of the following:
To have files of a certain type always open in a different editor, change the preferred editor for that file type to that editor.
To have files of a certain type always open in the application specified for them in the Finder, change the preferred editor for that file type to “Open With Finder.”
To temporarily force Xcode to treat a file as a different file type, and open it with the appropriate editor, use the Open As command.
To temporarily force Xcode to open a file with the default application chosen for it in the Finder, use the Open With Finder command.
Note: HTML files are handled differently. If Xcode determines that an HTML file is documentation, Xcode assumes you want to view the file and displays the file with its built-in HTML viewer. Otherwise, Xcode assumes you want to edit the file and uses its built-in source code editor.
Overriding How a File is Displayed
Changing the Preferred Editor for a File Type
Opening Files With an External Editor
Opening Files With Your Preferred Application
Last updated: 2006-11-07