Visual Studio occasionally tells me:
The line endings in the following files are not consistent. Do you want to normalize the line endings?
When you copy paste something from web, you might get the inconsistent line endings. In order to fix this, you can use Visual studio extension "Line Endings Unifier" which can make line ending consistent automatically while saving file.