Webstorm set line break

Time:2022-6-15

Different operating systems use different line breaks.

  • Dos and windows use carriage return + line feed cr/lf to indicate the next line
  • Unix/linux uses line feed LF to indicate the next line
  • Mac OS uses the carriage return character CR to indicate the next line

Git file rollback and pull code will modify these line breaks. Combined with eslint, a full screen error message will appear, so you need to set the default line feed of webstorm.

Webstorm configuration