LF vs CRLF and tabs vs spaces

5 views
Skip to first unread message

Lee Henson

unread,
Mar 3, 2010, 6:24:34 AM3/3/10
to HORN Development
Having just done some work in horn_src, a couple of pain points I've
noticed are:

- my VS wants CRLF line endings, but the files are LF (I'm
core.autocrlf=false as well)

Adding a new file to the project causes VS to rewrite the csproj,
changing *most* of the line endings to CRLF. Is there a reason for LF,
not CRLF? If there is, can we put something in the csproj to force VS
to use LF line endings?

- my VS is set to use tabs rather than spaces, so any editing I do
inevitable ends up munging the indentation.

Again, do you know if it is possible to define in the csproj how
indentation should occur?

My google-fu is weak on both of these issues.

Paul Cowan

unread,
Mar 3, 2010, 6:52:04 AM3/3/10
to horn-dev...@googlegroups.com
I have never encountered this issue.

I am keen to change things to what is best for everyone.

I am just not sure what that is :-).

Is anyone else having issues?

Cheers

Paul Cowan

Cutting-Edge Solutions (Scotland)

http://thesoftwaresimpleton.blogspot.com/




--
You received this message because you are subscribed to the Google Groups "HORN Development" group.
To post to this group, send email to horn-dev...@googlegroups.com.
To unsubscribe from this group, send email to horn-developme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/horn-development?hl=en.


David Lawton

unread,
Mar 3, 2010, 6:54:35 AM3/3/10
to horn-dev...@googlegroups.com
This is more than likely a GIT thing

When you install MySysGit, you get the option of windows or linux line endings...

If you choose linux, it will commit and replace windows line endings with linux ones, and vice versa.

Make sure you select Windows line endings when working on .net projects with git.... otherwise you will encounter these crappy VS error messages.

Ninja
--
"I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." -- Charles Babbage
Reply all
Reply to author
Forward
0 new messages