Important: The information in this document is obsolete and should not be used for new development.
Xcode does not limit you to using its built-in editors to view and edit your files. You can specify an external editor of your choosing as the preferred editor for opening files of a given type. To choose an external editor for all files of a particular type:
Choose Xcode > Preferences, and click File Types.
Find the appropriate file type and click in the Preferred Editor column; a pop-up menu appears.
Select an option from the External Editor submenu. Currently, you can choose from the following options:
BBedit.
Text Wrangler.
SubEthaEdit.
emacs.
xemacs.
vi. Note that support
for vi in Xcode is limited
to opening the file in the editor.
Other. Choose this option to specify an external editor other than the ones specified earlier. When you select this option, a dialog that allows you to navigate to the application you wish to use as your external editor appears.
Note that many of these external editors do not appear in the External Editor menu unless they are installed on your computer.
For example, to edit all your source files with BBEdit, open the File Types preference pane and expand these entries: file, then text. Select the source code entry, and choose External Editor > BBEdit from the pop-up menu that appears when you click in the Preferred Editor column.
There are some restrictions when you’re using an external editor:
When you build a project, Xcode lists modified files and asks you whether you want to save them. Files in BBEdit and Text Wrangler are listed, but files in other editors are not. You need to save those files yourself before starting a build.
When you double-click a find result or a build error, most editors do not scroll to the line with the find result or error. BBEdit and Text Wrangler can.
To use emacs as
an external editor, you must add these lines to your ~/.emacs file:
(autoload 'gnuserv-start "gnuserv-compat" |
"Allow this Emacs process to be a server for client processes." t) |
(gnuserv-start) |
Last updated: 2006-11-07