You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the auto formatting options always remove the extra white space in the HashTables. This means that when formatting a file you either have to lose the alignment or discard the chunk in git before comiting.
Ideally, I'd like to have a way to auto-format arrays of hashtables like that, but I'm having trouble even coming up with the words to describe what I'm looking for with out using a visual reference.
At least, I could be happy with a formatting option to the tune of "Ignore white space in single-line HashTables". That would allow for manual formatting of the HashTables to not be overwritten by auto-formatting so the rest of the file can benefit from auto-formatting.
The text was updated successfully, but these errors were encountered:
markekraus
changed the title
Feature Request: Key/Value Vertical Alignment in Array of HashTable or Ignore WhietSpace in sinlge line HashTables
Feature Request: Key/Value Vertical Alignment in Array of HashTable or Ignore White Space in Sinlge Line HashTables
Jan 9, 2018
System Details
$PSVersionTable
:Issue Description
When writing pester tests it is common to use an array of HashTables to supply to
It -TestCases
:To improve readability of that array of HashTables, they are often formatted with a vertical alignment on the keys and values like so:
However, the auto formatting options always remove the extra white space in the HashTables. This means that when formatting a file you either have to lose the alignment or discard the chunk in git before comiting.
Ideally, I'd like to have a way to auto-format arrays of hashtables like that, but I'm having trouble even coming up with the words to describe what I'm looking for with out using a visual reference.
At least, I could be happy with a formatting option to the tune of "Ignore white space in single-line HashTables". That would allow for manual formatting of the HashTables to not be overwritten by auto-formatting so the rest of the file can benefit from auto-formatting.
reference PowerShell/PowerShell#5716
The text was updated successfully, but these errors were encountered: