PDA

View Full Version : Xcode annoyances




link92
Jun 3, 2006, 06:59 AM
Auto-completing a structure like a for loop creates:
for (<#initial#>; <#condition#>; <#increment#>) {
<#statements#>
}

How do I change that so it puts the { on a new line, and how do I get from the first block (<#initial#>) to the second block, or can that not be done?



gekko513
Jun 3, 2006, 07:06 AM
There's a keyboard short cut to move to the next placeholder <#---#> On my Mac (Norwegian keyboard) it is ctrl+<. You can find it or set it yourself in the preferences for Xcode.

As for the { on the next line, I don't know. I like it on the same line.

link92
Jun 3, 2006, 07:47 AM
For me it's listed as ^/, but the only ^ on the keyboard is Shift+6, so how are you meant to use it (I know I can change it, but I want to know how you can use a seemingly impossible shortcut)?

gekko513
Jun 3, 2006, 07:48 AM
^ means ctrl

link92
Jun 3, 2006, 07:52 AM
^ means ctrl
Hmm… Never come across that before, although that's probably more from lack of use of the ctrl key :D

gekko513
Jun 3, 2006, 09:23 AM
It's a UNIX thing, I think.