Powershell : Quick Trick to Multi-Line Commenting and Un-Commenting in ISE


In Powershell Ver 3.0 and above you can comment and un-comment multiple lines in one go, using the below trick.

Suppose you have a code and you want to comment all the lines of code starting from Line1 – Line12 like in the below example, obviously you can use Block commenting instead, In which you can comment your code inside comment blocks <# Your Code  #>,

But I have a quicker way for you, that can prove productive in day-to-day scripting

Read the complete article on my new website RidiCurious.com

Advertisements

3 thoughts on “Powershell : Quick Trick to Multi-Line Commenting and Un-Commenting in ISE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s