Snippets provide a convenient way to paste arbitrary text into the ISE console and script editor, right where you need it. The idea is to provide improved productivity, discoverability, and usability:
- To save you from typing repetitive or long text (or hunting for the script to copy-and-paste from)
- To save you a trip to Get-Help (think about all the attributes on script cmdlets)
- Beginners may insert an if statement as a means of learning PowerShell syntax
For those of you who are familiar with Visual Studio’s Snippets, the ISE version uses the same shortcut key, but it will surely feel like a “poor man’s version” :-), lacking the ability to tab between fields, among other things.
Read more at source: http://blogs.msdn.com/b/powershell/archive/2012/06/27/snippets-in-windows-powershell-ise-3-0.aspx
Cheers,
Anderson Patricio
http://blogs.msexchange.org/patricio
http://www.andersonpatricio.ca
Twitter: @apatricio