Is there a way to save files with LF line endings on Windows with WebStorm 10.0.1?
It looks like WebStorm has some functionality to prevent you from committing to Git with CRLF endings, but I didn't see anything that lets you just save it with LF endings in the first place.
Or am I missing it?
Please sign in to leave a comment.
Hi there,
AFAIK it has to be your git/repository settings and not actual IDE.
Yes -- you can change line ending for current file via either Status bar (next to file encoding) or "File | Line Separators"
Perfect. Thank you. I didn't think to search for "line separators".
I also see that you can change the default line separators for new files in:
Settings --> Code Style --> Line separator (for new files).