• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Indentation issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indentation issues


  • Subject: Indentation issues
  • From: Dario Accornero <email@hidden>
  • Date: Thu, 13 Nov 2003 13:03:04 +0100

Hello,

I can't get basic indentation to work with Xcode 1.0.1 under 7C107. This used to work just fine in PB...

My tab settings are no TAB characters with tab/indent width set to 4.
A C++ source file of mine, which uses DOS (CRLF) line-endings, contains this code:


        size_t iTokens = aTokens.size();
        Token eToken = FindToken(aTokens[0]);
        if ( eToken != NO_TOKEN )
            DecodeToken(eToken,aTokens);

gcc 3.3 warned me I was not using iTokens at all; I really should verify the value of iTokens to be at least 1, so I positioned the cursor after "aTokens.size();" and hit Return, preparing to write an if statement followed by a block enclosing the last three statements.

A line was added with the cursor on column 1. Fine, I thought, I just forgot to turn on syntax-aware indenting. I did that, choosing only Return as an auto-indent character and "Tab indents always"; then I hit Return again, and now I get this code:

        size_t iTokens = aTokens.size();
                Token eToken = FindToken(aTokens[0]);

The PB behavior was to (1) add a line between "size_t iTokens = aTokens.size();" and "Token eToken = FindToken(aTokens[0]);", and (2) position the cursor on this new line right below the "s" of "size_t" -- is there any way to get back the old behavior?

Thanks,
Dario
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Indentation issues
      • From: David Ewing <email@hidden>
  • Prev by Date: command line ignores buildstyle argument
  • Next by Date: Environment variable access in XCode?
  • Previous by thread: Re: command line ignores buildstyle argument
  • Next by thread: Re: Indentation issues
  • Index(es):
    • Date
    • Thread