title: Inserting copyright notice/banner in all source code files in Visual Studio 2012
body: <p>After some Googling I found this: <a href="http://www.andyparkhill.co.uk/2010/07/use-visual-studio-macro-to-insert.html" rel="noreferrer">Use a Visual Studio Macro to Insert Copyright Headers into Source Files</a>. It looked promising:</p>
  
  <pre><code>// &lt;copyright file="Sample.cs" company="My Company Name"&gt;
  // Copyright (c) 2012 All Rights Reserved
  // &lt;/copyright&gt;
  // &lt;author&gt;Leniel Macaferi&lt;/author&gt;
  // &lt;date&gt;08/30/2012 11:39:58 AM &lt;/date&gt;
  // &lt;summary&gt;Class representing a Sample entity&lt;/summary&gt;
  </code></pre>
  
  <p>When I tried <code>Tools -&gt; Macros</code> menu option it wasn't there anymore in VS 2012. Here's the proof: <a href="http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/d8410838-085b-4647-8c42-e31b669c9f11" rel="noreferrer">Macros in Visual Studio 11 Developer Preview</a>. They just dropped this functionality. :(</p>
  
  <p>So, I'm just curious to know which option I could use to add the copyright info to all existing source code files in my solution using Visual Studio 2012. Is there any standard way of doing this, using a template file (something related to  <code>T4 templates</code>) or a <code>PowerShell</code> script? I could write some code to iterate over the files with <code>.cs</code> extension and add the copyright info but that is not what I'm after. I'd like to know about some tool to automate this process.</p>