How To Make Correct Line Endings

Written by wagslane | Published 2020/09/12
Tech Story Tags: crlf | lf | linting | styling | vscode | ide | productivity | vim

TLDR 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.via the TL;DR App

no story

Written by wagslane | Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.
Published by HackerNoon on 2020/09/12