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.
Quick link from Twitter, don’t want to lose the link https://twitter.com/anoopmannur/status/1497256566206181376?s=21 https://www.anoopcnair.com/set-automatic-lock-screen-for-inactive-device-intune/