Just for a more complete answer, this worked best for me:
Replace
(?<!\r)\n
with
\r\n
in entire solution with “regEx” option.
This will set the correct line ending in all files which didn’t have the correct line ending so far. It uses the negative lookahead to check for the non-existance of a \r in front of the \n.
Be careful with the other solutions: They will either modify all lines in all files (ignoring the original line ending) or delete the last character of each line.
Related Posts:
- Convert C++ program into assembly
- Heap Corruption Detected: after Normal block
- Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express
- Error : Could not load file or assembly or one of it’s dependencies
- Error Message : Cannot find or open the PDB file
- What is “stdafx.h” used for in Visual Studio?
- Configuration System Failed to Initialize
- Visual Studio doesn’t see Team Explorer
- push_back vs emplace_back
- C++ Fatal Error LNK1120: 1 unresolved externals
- Visual Studio debugger error: Unable to start program Specified file cannot be found
- Does not contain a static ‘main’ method suitable for an entry point
- Why am I getting a “Could not find a part of the path” exception?
- What is and how to fix System.TypeInitializationException error?
- Where can I find System.Web.Helpers, System.Web.WebPages, and System.Web.Razor?
- An error occurred while signing: SignTool.exe not found
- Attach (open) mdf file database with SQL Server Management Studio
- How to fix “namespace x already contains a definition for x” error? Happened after converting to VS2010
- push_back vs emplace_back
- How to fix “Root element is missing.” when doing a Visual Studio (VS) Build?
- How do I fix the indentation of selected lines in Visual Studio
- Visual C++ executable and missing MSVCR100d.dll
- General way of solving Error: Stack around the variable ‘x’ was corrupted
- How to read lines of a file in Ruby
- Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style
- Why should I use core.autocrlf=true in Git?
- Already defined in .obj – no double inclusions
- IntelliSense: the object has type qualifiers that are not compatible with the member function
- Error “system” is ambiguous?
- This project references NuGet package(s) that are missing on this computer
- Unable to connect to any of the specified mysql hosts. C# MySQL
- Getting “Handshake failed…unexpected packet format” when using WebClient.UploadFile() with “https” when the server has a valid SSL certificate
- Receiving access denied error from Visual Studio when trying to change target framework
- Error ‘LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt’ after installing Visual Studio 2012 Release Preview
- What does Visual Studio mean by normalize inconsistent line endings?
- The name ‘InitializeComponent’ does not exist in the current context
- The type or namespace name could not be found
- The project type is not supported by this installation
- What is the return type of sizeof operator?
- How do I fix a .NET windows application crashing at startup with Exception code: 0xE0434352?
- How to resolve file being used by another process?
- error C2065: ‘cout’ : undeclared identifier
- How to install Visual Studio Build Tools 2010 on Visual Studio 2015 Community?
- error A2022: instruction operands must be the same size
- The ‘packages’ element is not declared
- IIS error, Unable to start debugging on the webserver
- error C2039: ‘string’ : is not a member of ‘std’, header file problem
- How to move div vertically down using CSS
- How to implement Java “Scanner” in C++?
- LINK : fatal error LNK1104: cannot open file ‘D:\…\MyProj.exe’