• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Tachytelic.net

  • Get in Touch
  • About Me

Multiline comments in PowerShell

August 29, 2019 by Paulie Leave a Comment

Adding a comment block is easy in Powershell, you simply start the comment with <# and end it with #>

Image showing a multi line comment in Powershell

Windows PowerShell ISE can comment multiples lines. Simply hold down Alt-Shift-Up/Down and select the block of code that you want to comment and then press # or backspace to remove the comment, like so:

Animated GIF showing how to comment multiple lines of code with Windows PowerShell ISE

Filed Under: How To Tagged With: Powershell

Reader Interactions

Leave a Reply Cancel reply

Primary Sidebar

Link to my LinkedIn Profile
Buy me a coffee

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 245 other subscribers.

Go to mobile version