Re: Editor stops tabbing (apparently prefs-related)
Re: Editor stops tabbing (apparently prefs-related)
- Subject: Re: Editor stops tabbing (apparently prefs-related)
- From: Fritz Anderson <email@hidden>
- Date: Mon, 07 Jan 2013 13:44:11 -0600
For what it may be worth, I don't carry xcuserdata/ between the machines, and I haven't compared them. I'm not at the problem machine right now.
— F
On 7 Jan 2013, at 11:55 AM, Fritz Anderson <email@hidden> wrote:
> 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
_______________________________________________
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