We have all been there, trouble shooting a script and you need to comment out a group of lines quickly. Most IDEs have this feature built in. Now PowerShell v3 ISE has this feature also but its not obvious. I found this little tip on DexterPOSH’s Blog.
Comment Code :
•Press Alt + Shift + Up/Down arrow key to select lines
•Once lines are selected, Press “#” to comment
Uncomment Code :
•Follow the same Key shortcut to select text [Alt + Shift + Up/Down].
•Once selected , Press Delete.
Dexter has a nice little animation on his site.