paint-brush
How To Make Correct Line Endingsby@wagslane
1,125 reads
1,125 reads

How To Make Correct Line Endings

by Lane Wagner2mSeptember 12th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Unix systems (Linux and Mac) default to the LF (line feed) character for line breaks. Windows on the other hand is "special" and defaults to CR/LF (carriage return AND line feed) This is typically due to a difference in line endings. At the bottom right of the screen in VS Code there is a little button that says "LF" or "CRLF":Click that button and change it to your preference. Voila, the file you are editing now has the correct line breaks.

Company Mentioned

Mention Thumbnail
featured image - How To Make Correct Line Endings
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane
Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Coffee-web
Learnrepo
Safelinkchecker