How To Make Correct Line Endingsby@wagslane
579 reads

How To Make Correct Line Endings

tldt arrow
Read on Terminal Reader🖨️
JS🚫

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

@wagslane

Lane Wagner

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa