Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Convert-LineEnding command #17

Open
rkeithhill opened this issue Nov 25, 2020 · 1 comment
Open

Add Convert-LineEnding command #17

rkeithhill opened this issue Nov 25, 2020 · 1 comment
Milestone

Comments

@rkeithhill
Copy link

This would be like dos2unix and unix2dos. Running gci *.cpp | Convert-LineEnding with no "switch" parameter should convert line endings to match the current platform. I would expect -Windows and -Unix (or -Linux) mutually exclusive switches to force a specific line-ending independent of the current platform. Not sure if it would be worth adding -macOS switch (for \r line endings) since I "think" that is old, old macs and probably not relevant anymore.

@BarabasGitHub
Copy link

Can I nudge this issue? I just searched half the web for a decent solution and they're all kinda bad in their own way. Having something for this OOTB would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants