Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text editor - shift left/right




On May 31, 2006, at 5:23 PM, Steve Mills wrote:

On May 31, 2006, at 14:09, Steve Mills wrote:

On May 31, 2006, at 12:06, Fritz Anderson wrote:

I'm confused. Doesn't Xcode automatically reindent one-line-or-more
pastes, making the original indentation irrelevant?

It does if you have the pref turned on, but I have it off because it
does some things in a way that I don't like. Maybe I'll turn it back
on for a while and see if anything has changed in the past few releases.

Well. I've had the "Syntax-aware indenting" pref turned on since my last post (no other prefs under that checkbox are turned on because they annoy me). I was just typing some new code and found that I couldn't type a tab between a type and a variable. I started with this temporary test code, not indented at all (I do that for test code so it's more obvious):

<snip>

Only after deleting the space, hitting tab did nothing. Nada. Zip. Zilch. Yep, that's a mighty fine feature there. Anybody else see this?

Go to Xcode Preferences:Indentation. If the Tab Indents popup is set to "Always", hitting tab *always* reindents the current line. If you don't like this behavior, choose "In leading white space" to only cause indent the line when you hit tab when the cursor is in the whitespace at the beginning of the line.


-Prachi

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: text editor - shift left/right (From: Steve Mills <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.