Xcode annoyances

Discussion in 'Mac Programming' started by link92, Jun 3, 2006.

  1. macrumors 6502

    Joined:
    Aug 15, 2004
    #1
    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?
     
  2. macrumors 603

    gekko513

    Joined:
    Oct 16, 2003
    #2
    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.
     
  3. thread starter macrumors 6502

    Joined:
    Aug 15, 2004
    #3
    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)?
     
  4. macrumors 603

    gekko513

    Joined:
    Oct 16, 2003
    #4
    ^ means ctrl
     
  5. thread starter macrumors 6502

    Joined:
    Aug 15, 2004
    #5
    Hmm… Never come across that before, although that's probably more from lack of use of the ctrl key :D
     
  6. macrumors 603

    gekko513

    Joined:
    Oct 16, 2003
    #6
    It's a UNIX thing, I think.
     

Share This Page