Page 1 of 1

Unix-style line endings in PowerShell Studio

Posted: Mon Jan 09, 2017 9:29 am
by mmcnabb
With the advent of PowerShell Core supporting cross-platform scripting with Linux and OSX, scripts will likely need to be saved with Unix-style line endings (LF) to ensure compatibility. Please contact me for a link to a discussion on Github about this topic.

Currently it seems that PowerShell Studio saves script files with Windows-style line endings (CRLF) and there doesn't seem to be a way to configure this behavior. Please add this capability to the Editor options menu, or possibly in the status bar next to the file encoding selector.

Thanks!

Re: Unix-style line endings in PowerShell Studio

Posted: Mon Jan 09, 2017 9:36 am
by DevinL
Thank you for the suggestion! I'll add this to the wishlist and when we have some more information, it'll be posted here.

Can you share the link to the discussion you mentioned? You can post it in this thread or PM me directly.

Re: Unix-style line endings in PowerShell Studio

Posted: Mon Jan 09, 2017 11:56 am
by mmcnabb
DevinL wrote:Thank you for the suggestion! I'll add this to the wishlist and when we have some more information, it'll be posted here.

Can you share the link to the discussion you mentioned? You can post it in this thread or PM me directly.
Unfortunately I can't post outside links in this forum since I'm a new poster. Maybe this will get you there?

github_dot_com/PoshCode/PowerShellPracticeAndStyle/issues/68

I did send this URL over to June B. on twitter, so she can probably point you in the right direction as well.

Thanks!

Re: Unix-style line endings in PowerShell Studio

Posted: Mon Jan 09, 2017 2:10 pm
by DevinL
I just typed it out and it worked without issue so I'll add this to the feature request as additional information, thanks :)

Re: Unix-style line endings in PowerShell Studio

Posted: Tue Feb 20, 2018 3:54 pm
by davidc
You can now alter the file's line endings using the status bar:

https://www.sapien.com/blog/2018/02/20/ ... -v5-5-149/