![]() A block comment in PowerShell is beneficial for adding descriptive text in your scripts. When you open the script to seek out what the script does, it sure would be nice if there are useful details listed inside like what the script is for like who created it, and when was it created. Comments can be deleted using Ctrl +shift+ Q or select the block and select uncomment from options window. (PowerShell Studio version 4.1.72 introduces the Block Comment icon.) To delete comments (in either format), select the lines to be deleted and press Ctrl + Delete. Highlight a code block and press Ctrl + Shift + Alt + Q, or select Block Message to add a comment block. To individually comment out each line (#), select one or more lines and press Ctrl + Q, or click Comment (in the Edit section of the Home tab). Write-Host "above lines are example of multiline comment r script block" Write-Host "The above line won't be printed"
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |