Many people who use plain Vanilla ISE are not familiar with this small trick which was added in PowerShell v3.
In PowerShell v3 ISE you can comment/uncomment lines of code without installing any Add-Ons :
https://connect.microsoft.com/PowerShell/feedback/details/711231/ise-v3-need-to-be-able-to-comment-a-series-of-lines-in-a-block-of-code
http://blog.danskingdom.com/powershell-ise-multiline-comment-and-uncomment-done-right-and-other-ise-gui-must-haves/
In PowerShell v3 ISE you can comment/uncomment lines of code without installing any Add-Ons :
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.
Below is a animated GIF showing this in Action :
Resources :
https://connect.microsoft.com/PowerShell/feedback/details/711231/ise-v3-need-to-be-able-to-comment-a-series-of-lines-in-a-block-of-code
http://blog.danskingdom.com/powershell-ise-multiline-comment-and-uncomment-done-right-and-other-ise-gui-must-haves/