Page 1 of 1

Formatting option not respecting choice

Posted: Thu Jul 04, 2019 8:27 pm
by D.Leaman
Product, version and build: PowerShell Studio 2019 5.6.164
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1803
32 or 64 bit OS: 64-bit

The option for Place open brace on a new line in Options → Formatting → Formatting is not respecting the toggled selection for me. I currently have it unchecked so it should leave open braces on the same line. For example:
  1. if ($value)
  2.  
  3. {
  4.  
  5.     Out-Default 'True'
  6.  
  7. } else
  8.  
  9. {
  10.  
  11.     Out-Default 'False'
  12.  
  13. }
The above sample should turn in the following after formatting:
  1. if ($value) {
  2.  
  3.     Out-Default 'True'
  4.  
  5. } else {
  6.  
  7.     Out-Default 'False'
  8.  
  9. }
I know in the past this has worked fine but I haven't used SPS in a month or two so I'm unsure when this stopped working.

In case it helps, in the past when I would toggle the checkbox, the sample would update showing the change as well and this is no longer the case.

Re: Formatting option not respecting choice

Posted: Fri Jul 05, 2019 7:06 am
by mxtrinidad
Please upgrade to the next version v5.6.165. The next service release has resolved the issue you're experiencing.
Feel free to give use feedback.

Thanks

Re: Formatting option not respecting choice

Posted: Sat Jul 06, 2019 12:22 am
by D.Leaman
Whoops.. Thought I had already updated 😅

Thanks!