archivelaha.blogg.se

Collapse code notepad++ shortcuts
Collapse code notepad++ shortcuts









collapse code notepad++ shortcuts collapse code notepad++ shortcuts collapse code notepad++ shortcuts

That I want to cover is that the region keyword is case-sensitive in that you can only use a lowercase region and end region to properly group your code. Going from 50-plus lines of code on your screen of stuff that you are not interested in at the time to only looking at a single line makes a world of difference. By clicking on the plus sign, the code will be unfolded and displayed for you to look at. As you can see below, once you fold the code in, our minus sign becomes a plus ( +) sign that shows the code has been folded. Not only can you group the code together with a region, but you are also able to fold the code so that a long collection of your PowerShell code can simply be folded into a single line to avoid taking up precious screen real estate if you have no need to write or debug that section of code. What isn't evident by this code example and more evident in the image below is that once you have the completed region blocks typed out, there will be a " -" at the beginning region signaling that you can minimize this group down to just the comment.











Collapse code notepad++ shortcuts