Re: Line Endings when Pasting from external apps into Xcode
Re: Line Endings when Pasting from external apps into Xcode
- Subject: Re: Line Endings when Pasting from external apps into Xcode
- From: Markian Hlynka <email@hidden>
- Date: Tue, 5 Jan 2010 13:34:32 -0700
I can't say whether Xcode does anything special on paste, but it
probably also matters what application is doing the copy. I've seen
quite a few editors drop invisibles when copying. I presume the
programmer tried to replace them with \n or something.
Markian --- No longer telling whether or not something is sent from
his iPhone.
On 2010-01-05, at 11:57, Howard Moon <email@hidden> wrote:
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
_______________________________________________
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