Unix-style line endings in PowerShell Studio

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
Locked
User avatar
mmcnabb
Posts: 2
Joined: Tue Nov 05, 2013 7:15 pm

Unix-style line endings in PowerShell Studio

Post by mmcnabb » Mon Jan 09, 2017 9:29 am

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!

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Unix-style line endings in PowerShell Studio

Post by DevinL » Mon Jan 09, 2017 9:36 am

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.
DevinL
SAPIEN Technologies, Inc.

User avatar
mmcnabb
Posts: 2
Joined: Tue Nov 05, 2013 7:15 pm

Re: Unix-style line endings in PowerShell Studio

Post by mmcnabb » Mon Jan 09, 2017 11:56 am

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!

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Unix-style line endings in PowerShell Studio

Post by DevinL » Mon Jan 09, 2017 2:10 pm

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.

User avatar
davidc
Posts: 5475
Joined: Thu Aug 18, 2011 4:56 am

Re: Unix-style line endings in PowerShell Studio

Post by davidc » Tue Feb 20, 2018 3:54 pm

You can now alter the file's line endings using the status bar:

https://www.sapien.com/blog/2018/02/20/ ... -v5-5-149/
David
SAPIEN Technologies, Inc.

Locked