Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

link92

macrumors 6502
Original poster
Aug 15, 2004
335
0
Auto-completing a structure like a for loop creates:
Code:
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

macrumors 603
Oct 16, 2003
6,301
1
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

macrumors 6502
Original poster
Aug 15, 2004
335
0
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)?
 

link92

macrumors 6502
Original poster
Aug 15, 2004
335
0
gekko513 said:
^ means ctrl
Hmm… Never come across that before, although that's probably more from lack of use of the ctrl key :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.