Documente Academic
Documente Profesional
Documente Cultură
The “<#...#>” notation are called placeholders. By using the Select Next Placeholder
shortcut you can quickly jump from one argument to the next. The logic here is
pretty straightforward, Xcode just searches forward in the text file from where the in-
sertion caret is looking for one of these blocks and then selects it. In this example I
had typed “setVal”, did a Next Completion which filled out the method and then doing
Select Next Placeholder it makes filling in the arguments really pretty quick.
Page 1 of 2
CS193E Handout #3
Winter 2008 Dempsey/Marcos
Preferences
In a similar way to how the learning the key shortcuts above will make life easier for you, setting
a couple preferences can improve your Xcode experience. Here’s a list of what I recommend:
• In the Code Sense pref pane turn off the “Indicate when completions are available”. It tends
to slow things down
• Also in the Code Sense pane, turn off the “Automatically suggest on member call / access”. I
don’t recall if this is on by default or not but if it’s on it can be a frequent source of “spinning
beachballs” in the Xcode editor.
• In Building, set the “Place Build Products in:” option to “Customized location:” and specify a
directory that you can write into. This will keep all the build files outside of your source tree
which makes submissions easier and keeps your source unpolluted. If you’re working on a
LaIR machine you’ll probably have to set it to something like “~/build”, although I’m not posi-
tive how that will work. If this doesn’t work out, let me know.
• In Indentation, make sure “Syntax-aware indenting” is enabled. I check all the “Automatically
indented characters:” feel free to check what works for you.
Page 2 of 2