https://github.com/dotnet/docs/issues/3455 The DotNet team is collecting feedback on this item as well.
An error occurred while saving the commentMichael Holzer commented
Both. Syntax should be automatically created first.
Created an Issue on GitHub to put this in our backlog: https://github.com/PowerShell/PowerShell/issues/2579
Feel free to continue voting on this item here to drive prioritization.