{"id":7916,"date":"2014-10-15T06:00:00","date_gmt":"2014-10-15T13:00:00","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/?p=7916"},"modified":"2014-10-13T15:58:44","modified_gmt":"2014-10-13T22:58:44","slug":"comment-it-out","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2014\/10\/15\/comment-it-out\/","title":{"rendered":"Comment it out!"},"content":{"rendered":"<p>Today, I was experimenting with hash tables that had keys with multiple values. (More about that later!) But, in the course of my experimentation, I tried one technique and then another and then another. I didn\u2019t want to delete any of my trial code, but I also didn\u2019t want it to run. I just wanted to comment it out.<\/p>\n<p>I could have typed a comment symbol (#) on each line or typed the \u201c&lt;#\u201d and \u201c#&gt;\u201d to enclose each code block in a comment block, but PowerShell Studio 2014 makes commenting even easier.<\/p>\n<p>&nbsp;<\/p>\n<p>To comment out each line individually (#), highlight one or more lines and type <strong>Ctrl + Q<\/strong>, or click <strong>Comment<\/strong> (in the Edit section of the Home tab).<\/p>\n<blockquote><p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image_thumb4.png\" alt=\"image\" width=\"244\" height=\"128\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p align=\"left\">Here\u2019s the result.<\/p>\n<blockquote><p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image_thumb1.png\" alt=\"image\" width=\"385\" height=\"227\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>To add a comment block, highlight a code block and type <strong>Ctrl + Shift + Alt + Q, <\/strong>or click <strong>Block Comment<\/strong>. (The Block Comment icon is new in PowerShell Studio version 4.1.72.)<\/p>\n<blockquote><p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image_thumb5.png\" alt=\"image\" width=\"369\" height=\"135\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p>And, here\u2019s the result.<\/p>\n<blockquote><p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image_thumb2.png\" alt=\"image\" width=\"383\" height=\"258\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>To delete comments (either format), highlight the commented lines and type <strong>Ctrl + Shift + Q<\/strong>, or click <strong>Uncomment<\/strong>.<\/p>\n<blockquote><p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image6.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image_thumb6.png\" alt=\"image\" width=\"314\" height=\"144\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p>And, they\u2019re gone.<\/p>\n<blockquote><p><a href=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"http:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2014\/10\/image_thumb3.png\" alt=\"image\" width=\"384\" height=\"249\" border=\"0\" \/><\/a><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>That will save me a few keystrokes and let me concentrate on my hash table.<\/p>\n<p><i>June Blender is a technology evangelist at SAPIEN Technologies, Inc. You can reach her at <a href=\"mailto:juneb@sapien.com\">juneb@sapien.com<\/a> or follow her on Twitter at <a href=\"https:\/\/twitter.com\/juneb_get_help\">@juneb_get_help<\/a>.<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I was experimenting with hash tables that had keys with multiple values. (More about that later!) But, in the course of my experimentation, I tried one technique and then another and then another. I didn\u2019t want to delete any of my trial code, but I also didn\u2019t want it to run. I just wanted [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[703],"tags":[934,874,930],"class_list":["post-7916","post","type-post","status-publish","format-standard","hentry","category-powershell-studio","tag-juneb","tag-powershell-studio-2014","tag-ui"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/7916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=7916"}],"version-history":[{"count":4,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/7916\/revisions"}],"predecessor-version":[{"id":7957,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/7916\/revisions\/7957"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=7916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=7916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=7916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}