Re: Project Find - Replace Fails Silently - Watch Movie!
Re: Project Find - Replace Fails Silently - Watch Movie!
- Subject: Re: Project Find - Replace Fails Silently - Watch Movie!
- From: Dan Korn <email@hidden>
- Date: Thu, 23 Oct 2008 11:25:34 -0500
On Oct 22, 2008, at 7:30 AM, Jerry Krinock wrote:
Does the latter setting not mean that whenever Xcode overwrites any
file, it will change all line endings to unix?? I expect that this
should have cleaned out any non-Unix line endings by now but I still
have this problem. With hundreds of files, I don't want to manually
change each of them using the Info window. My Groups have "no
explicit line endings", and I suppose I could try and change them
there, but those settings default to my Xcode preferences if they
are not set. Setting things in children individually instead of
defaulting to a parent setting will cause more confusion later.
Does anyone know, would it solve this problem to do a multi-file
search/replace on my whole "Projects" folder in BBEdit and change
all line endings? I'd have to be careful and do some controlled
tests first.
If you're using some kind of source control, you should be able to
have it set the line endings when you check out the source files. If
you're not using SCM, well, you probably should. Having the SCM set
the line endings, and then letting Xcode auto-detect them, works much
better than setting the line ending style explicitly in Xcode, in my
experience. The only problem is when you copy-and-paste code from
another file with different line endings, in which case you may need
to temporarily use the setting in Xcode to "fix" them.
Dan
_______________________________________________
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