Xcode 4 autocomplete (for, if, while)

Discussion in 'Mac Programming' started by frnak, Mar 24, 2011.

  1. frnak macrumors member

    frnak

    Joined:
    Oct 21, 2007
    #1
    Hi all

    In Xcode 3, the program featured a great autocomplete, which can complete a layout for a for/if/while loop function quickly, just by typing "fo", "if", or "whi"

    e.g. Writing if, xcode will autocomplete the following

    Code:
    
    if (expression) {
    
    (statement)
    
    }
    
    
    Now that I've upgraded to Xcode 4, the autocomplete does not complete it for me anymore. As a student that writes a lot of these, it's frustrating to see this feature missing.

    Any idea how to enable it? or is it really gone? (boo)

    Thanks
     
  2. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #2
    It's still there for me. I type "if", then pause, and it offers "if.." and "if... else..." auto-completions.

    There's also the Code Snippets section, which while not as convenient is quite handy for snippets like this.
     
  3. frnak thread starter macrumors member

    frnak

    Joined:
    Oct 21, 2007
    #3
    I just tried it, and it doesn't work for me...regardless of the pause

    I'm currently writing in a command line based C file...
     
  4. whooleytoo macrumors 603

    whooleytoo

    Joined:
    Aug 2, 2002
    Location:
    Cork, Ireland.
    #4
    Ah, that's probably it. It works fine in an Obj-C file, but not plain C. Not sure if there's a way of enabling it for C files, sorry.
     

Share This Page