• 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
Stupid tabs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stupid tabs


  • Subject: Stupid tabs
  • From: William Squires <email@hidden>
  • Date: Thu, 13 Mar 2014 17:31:14 -0500

Okay, I've tried everything I can think of (Xcode > Preferences | Text Editing | Indentation), so I'm thinking this is a bug. If I copy a line that has no leading whitespace, then paste it elsewhere, Xcode insists on inserting a tab. Example:

// If I copy the following line
NSLog(@"[%@ %@]", NSStringFromClass([self class]), NSStringFromSelector(_cmd));

// and paste it below this comment
<paste it here>

it'll come out as:

// and paste it below this comment
  NSLog(@"[%@ %@]", NSStringFromClass([self class]), NSStringFromSelector(_cmd));

^ aggravating extra space/tab! :(

Interestingly, If I copy a line that's indented, and paste it on a blank line, the result has NO leading whitespace! Grrrr....  There needs to be a checkbox in the prefs pane here that says

[ ] Let me format my own damned code!

that, when checked, would disable all the syntax-aware stuff (except syntax coloring) - the only exception is that it would still respect the "Tab Width" and "Indent Width" settings when I hit the tab key.


 _______________________________________________
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

  • Follow-Ups:
    • Re: Stupid tabs
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Customizing spacing in auto-completed methods?
  • Next by Date: Re: Stupid tabs
  • Previous by thread: Re: Customizing spacing in auto-completed methods?
  • Next by thread: Re: Stupid tabs
  • Index(es):
    • Date
    • Thread