Skip to content

Commit

Permalink
feat(lineendings): 📝 Add details about an extension to render the lin…
Browse files Browse the repository at this point in the history
…e endings.
  • Loading branch information
chrisguest75 committed Mar 18, 2024
1 parent 9ed1e9f commit a74c841
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions 72_line_endings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,7 +39,7 @@ cat --show-all ./unix.txt
file ./unix.txt
```

## Convert
## Convert

```sh
dos2unix ./dos.txt
Expand All @@ -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)

0 comments on commit a74c841

Please sign in to comment.