Quantcast
Channel: Tachytelic.net
Viewing all articles
Browse latest Browse all 210

Multiline comments in PowerShell

$
0
0

Adding a comment block is easy in Powershell, you simply start the comment with <# and end it with #>

Image showing a multi line comment in Powershell

Windows PowerShell ISE can comment multiples lines. Simply hold down Alt-Shift-Up/Down and select the block of code that you want to comment and then press # or backspace to remove the comment, like so:

Animated GIF showing how to comment multiple lines of code with Windows PowerShell ISE

The post Multiline comments in PowerShell appeared first on Tachytelic.net.


Viewing all articles
Browse latest Browse all 210

Trending Articles