Hiding Default ISE Snippets

by May 3, 2013

The PowerShell 3.0 ISE editor ships with a number of default code snippets that you can see (and insert) by pressing CTRL+J. Once you start to refine your snippets and create your own (New-IseSnippet), you may want to hide the default snippets.

This line will remove the default snippets from the snippet menu:

$psISE.Options.ShowDefaultSnippets = $false

And this line will re-enable default snippets:

$psISE.Options.ShowDefaultSnippets = $true

Twitter This Tip! ReTweet this Tip!