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?

0
2 comments

Hi there,

It looks like WebStorm has some functionality to prevent you from committing to Git with CRLF endings,

AFAIK it has to be your git/repository settings and not actual IDE.

Or am I missing it?

Yes -- you can change line ending for current file via either Status bar (next to file encoding) or "File | Line Separators"

0
Avatar
Permanently deleted user

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).

0

Please sign in to leave a comment.