Re: Indentation issues
Re: Indentation issues
- Subject: Re: Indentation issues
- From: David Ewing <email@hidden>
- Date: Thu, 13 Nov 2003 15:18:07 -0700
This is fixed for the (proverbial) next version of Xcode. Syntax-aware
indentation got things wrong quite often when there were actual tab
characters in the file.
Dave
On Nov 13, 2003, at 5:03 AM, Dario Accornero wrote:
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.
_______________________________________________
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.