Sharing PowerShell ISE v3 Code Snippets

by Aug 27, 2012

In a previous tip we illustrated how you can create code snippets for PowerShell ISE v3 script editor using New-ISESnippet.

All custom snippets are stored as XML files in this location:

Join-Path (Split-Path $profile) 'Snippets'

So if you want to share snippets or copy them from one machine to another, simply open the folder and copy the files to wherever you want:

Invoke-Item (Join-Path (Split-Path $profile) 'Snippets')

Or, even shorter:

ii (Join-Path (Split-Path $profile) 'Snippets')

Twitter This Tip! ReTweet this Tip!