Question:
Do we have any VScode extension similar to https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring or any other way for providing auto doc string for PowerShell functions? Currently I’ve to add the doc string manually like this :Answer:
It is built-in with the PowerShell extension!You can simply type
##
the line above a function. It will auto-expand into a comment-based help block which does account for the current defined parameters.If you have better answer, please add a comment about this, thank you!