diff --git a/72_line_endings/README.md b/72_line_endings/README.md index e3124fc..d30bfbb 100644 --- a/72_line_endings/README.md +++ b/72_line_endings/README.md @@ -2,11 +2,23 @@ Demonstrate some examples of working with line-endings differences. +## Reason + +When switching between WSL and Windows line endings will sometimes be converted. + NOTES: * It seems if VSCode detects line endings it continues to use that style. -## Tools +## VSCode Extension + +Use a code extension to render the line endings. + +```sh +code --install-extension medo64.render-crlf +``` + +## Tools ```sh sudo apt install dos2unix @@ -27,7 +39,7 @@ cat --show-all ./unix.txt file ./unix.txt ``` -## Convert +## Convert ```sh dos2unix ./dos.txt @@ -40,4 +52,3 @@ cat --show-all ./unix.txt ## Resources * How to find out line-endings in a text file? [here](https://stackoverflow.com/questions/3569997/how-to-find-out-line-endings-in-a-text-file) -