Editor stops tabbing (apparently prefs-related)
Editor stops tabbing (apparently prefs-related)
- Subject: Editor stops tabbing (apparently prefs-related)
- From: Fritz Anderson <email@hidden>
- Date: Mon, 07 Jan 2013 11:55:24 -0600
Xcode 4.5.2 in all cases.
After a certain number of tabs on a line, the Xcode editor on one of my machines stops rendering leading tabs. What ought to render as:
self.rightSwipeNotifier =
[center addObserverForName: SwipeInChoiceDidExpand
object: self.swipeLeftController
queue: [NSOperationQueue mainQueue]
usingBlock:^(NSNotification *note) {
IPDViewController * strongSelf = weakSelf;
[strongSelf.swipeUpController doSwipeDown: nil];
}];
Renders instead as:
self.rightSwipeNotifier =
[center addObserverForName: SwipeInChoiceDidExpand
object: self.swipeLeftController
queue: [NSOperationQueue mainQueue]
usingBlock:^(NSNotification *note) {
IPDViewController * strongSelf = weakSelf;
[strongSelf.swipeUpController doSwipeDown: nil];
}];
Note that the contents of the block (usingBlock:) are one tab-width lees indented, and the second and third components of the addObserver... selector are one tab-width less indented. Putting the insertion point before the first less-indented lines' first non-whitespace characters, and pressing the tab key, has no apparent effect.
But the lack of indentation is only apparent:
* Viewing the file in BBEdit, or in Xcode on a different machine, shows the lines are properly indented.
* Pressing the tab key inserts an additional tab, visible in BBEdit and the other machine's Xcode.
* On the affected machine, backspacing after the additional tabs has no visible effect until the extra tabs are consumed.
I've compared the indentation settings in the Preferences window, and matched them. I've looked for obvious keys (Tab, Indent) in the preferences file, and experimented with transferring them. (A straight file comparison yields too many differences to be usable.) No luck.
On both machines, both the project and the file are set to indent-with-tabs, 4-space tabs, 4-space indentation, wrap lines.
Is there some trick I should be trying, or should I just file a bug, and suffer? Any opinions on what I should include in the report, beyond the preferences .plist and the file?
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden