A comment starts with the character ' and ends at the end of the line.


To comment or uncomment multiple lines in a single step, select the lines and press Ctrl+Shift+#.


Example:

' This is a comment
$i = 1 ' This is another comment