• 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
Line Endings when Pasting from external apps into Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Line Endings when Pasting from external apps into Xcode


  • Subject: Line Endings when Pasting from external apps into Xcode
  • From: Howard Moon <email@hidden>
  • Date: Tue, 5 Jan 2010 10:57:19 -0800

Hi all,

does anyone know if pasting from an external app into Xcode affects the line endings of the code that is pasted?

I'm been having a lot of troubles with the Xcode editor, apparently caused by inconsistent line endings in the source files. I've tried to maintain all my files with Windows line endings (CR/LF), but I keep finding that some of my files no longer have consistent line endings. I'm wondering if this might be because sometimes I paste code into Xcode that I've copied from other apps, such as Mac Mail.

Does anyone know if the Paste operation in Xcode corrects the line endings in code being pasted into my C++ source files? Or, does it simply paste whatever it finds on the clipboard, leaving incorrect line endings in place? If the latter, is there any way to ensure that when I paste into Xcode, I am getting the line endings that I need? I could paste into a blank file, use CodeWarrior to set the line endings, then copy and paste into Xcode, but that's a lot of extra work.

I'm not sure that copy&paste is what is causing my continuing problems with line endings, but it would be nice if I could somehow be sure (short of doing a bunch of testing in a binary editor after every action to try to pinpoint when/where the changes are introduced).

Thanks,
	Howard





_______________________________________________
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: Line Endings when Pasting from external apps into Xcode
      • From: David Dunham <email@hidden>
    • Re: Line Endings when Pasting from external apps into Xcode
      • From: Markian Hlynka <email@hidden>
  • Prev by Date: Re: File encoding for files ported between Mac and Windows?
  • Next by Date: Re: File encoding for files ported between Mac and Windows?
  • Previous by thread: Re: File encoding for files ported between Mac and Windows?
  • Next by thread: Re: Line Endings when Pasting from external apps into Xcode
  • Index(es):
    • Date
    • Thread