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!
Unix-style line endings in PowerShell Studio
Forum rules
Do not post any licensing information in this forum.
Do not post any licensing information in this forum.
Re: Unix-style line endings in PowerShell Studio
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.
Can you share the link to the discussion you mentioned? You can post it in this thread or PM me directly.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Unix-style line endings in PowerShell Studio
Unfortunately I can't post outside links in this forum since I'm a new poster. Maybe this will get you there?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.
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
I just typed it out and it worked without issue so I'll add this to the feature request as additional information, thanks
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Unix-style line endings in PowerShell Studio
You can now alter the file's line endings using the status bar:
https://www.sapien.com/blog/2018/02/20/ ... -v5-5-149/
https://www.sapien.com/blog/2018/02/20/ ... -v5-5-149/
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.