I am using phpStorm to edit some files. They appear fine in phpStorm, but when i open them in notepad everything is on one line. So for example this:
Will become :
Obviously, this causes error. Why is this happening and how can i restore my files?
Best How To :
I have found a solution for this. The line breaks were not in windows format. In phpStorm, this was solved like this:
Select a file or directory in the Project tool window.
Choose File | Line Separators on the main menu, and then select the desired line ending style from the sub-menu.
You can read this, and more about line separators in phpstorm here: https://www.jetbrains.com/phpstorm/help/configuring-line-separators.html