Line Endings when Pasting from external apps into Xcode
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