Adding standard header with disclaimer, copyright, and so on to your scripts is very easy. If you would like to (or have to – because of your company’s policies) use a certain template for your scripts – just define is as a code snippet in PowerGUI Script Editor.
Once you do that, the template is just a click- (or Ctrl-I-) away:
(Note that snippets are alphabetically sorted so using underscore to get your ahead of others is a valid trick.)
And then, once you select the snippet you would probably get something like:
Hopefully, this will save you a few extra seconds a day wasted on meaningless copy/paste.
Detailed instructions on adding your code snippets can be found here.
Subscribe by email

Thanks! This is very useful feature in PowerGUI. This can really save my time, bacause I had to add my custom templates to scripts each time when I wrote new scripts. Now it is so easy..
My pleasure. And thanks for the idea for the blog post.