crlf vs lf in templates
See original GitHub issueI used to be able to do dotnet new
and it would create project that could be read in notepad. Since the new engine was changed this is no longer the case. There are plenty of debates that could be had about how to do this right. The new behavior may be the right default, maybe not? Maybe there should be an option?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:13 (11 by maintainers)
Top Results From Across the Web
LF will be replaced by CRLF in git - What is that and is it ...
The warning asked about in this post states that "LF will be replaced by CRLF", but the scenarios described in this answer all...
Read more >CRLF vs. LF: Normalizing Line Endings in Git
LF stands for “linefeed” – the LF control character advanced the paper one line without moving the print head. So if you wanted...
Read more >What does 'LF will be replaced by CRLF' mean? : r/git
CR, LF and CRLF refer to different ways of storing this line-break in the file. The character (or characters) that represent a 'line-break'...
Read more >Resolved: Git warning LF will be replaced by CRLF in file
In windows a line is represented with a carriage return (CR) and a line feed (LF) thus (CRLF). when you get code from...
Read more >Working with line-ends special symbols LF/CRLF - Cookiecutter
The special template variable _new_lines enforces a specific line ending. Acceptable variables: '\r\n' for CRLF and '\n' for POSIX. Here is example how ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think we should change to CRLF and then see if we get any user feedback. But I don’t think this meets any bar for any release that’s locking down.
I’m trying to use a custom template on Windows but getting
LF
in all files, except the few specified other thantext=auto
in.gitattributes
, so this doesn’t seem to be fixed. 😕Not sure it’s relevant but we build the NuGet package for the custom dotnet template with dotnet sdk 3.1.201 in a Docker container on Linux.