How do you comment out code in PowerShell?

前端 未结 10 1598
傲寒
傲寒 2020-12-12 08:59

How do you comment out code in PowerShell (1.0 or 2.0)?

10条回答
  •  感动是毒
    2020-12-12 09:52

    You use the hash mark like this

    # This is a comment in Powershell
    

    Wikipedia has a good page for keeping track of how to do comments in several popular languages

    http://en.wikipedia.org/wiki/Comparison_of_programming_languages_(syntax)#Comments

提交回复
热议问题