ISE V3 - Need to be able to Comment a series of lines in a block of code. - by MaxTrinidad

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


58
0
Sign in
to vote
ID 711231 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 12/3/2011 8:13:52 AM
Access Restriction Public

Description

I can't comment a block of code.

Just a suggestion that may help all newbies in using PowerShell ISE V3 to be able to highlight a block of code (this code be a function with 50 lines) to be commented out. This could be added in the ribbon menu and available when doing a right-click to the highlighted code.

PS... in the question "How often does this happen?", there's no option for not available.
:)
Sign in to post a comment.
Posted by Freegam3.com on 9/5/2014 at 9:22 AM
Play online <a href=http://freegame3.com> free flash games</a>
Posted by Free game 3 on 8/13/2014 at 2:05 PM
It worked.
http://healthandplasticsurgery.com
Posted by sba on 7/24/2014 at 8:05 AM
The Alt+Shift+Up/Down, # trick indeed works (where is it documented?) but there's no easy-and-fast "uncomment" equivalent AFAIK
Posted by Microsoft on 5/1/2014 at 8:40 PM
We added this in v3. Try this:
Put cursor on Column 1 in a script
Press Alt + Shift + Up/Down Arrow Keys to block select lines to comment
Press # to add comment
Posted by deadlydog on 6/20/2013 at 10:11 AM
I agree that this should be provided out of the box. In the meantime I show how you can get this functionality within a couple minutes by using the add-on I made on my blog at http://blog.danskingdom.com/powershell-ise-multiline-comment-and-uncomment-done-right-and-other-ise-gui-must-haves/
Posted by Joel 'Jaykul' Bennett on 1/25/2012 at 6:39 PM
Don't forget to UNCOMMENT a block too.