title: Fast way to generate code functions from header functions in Visual Studio?
body: <p>This may be a minor question, but a solution would save me a lot of time and prevent mistakes. </p>
  
  <p>I am working on a C++ project in Visual Studio. If I define a function in a class in a header file, say</p>
  
  <pre><code>void InitButton(int ButtonNum);
  </code></pre>
  
  <p>I usually copy and paste the signature to the cpp file. Then, I insert the class name, and replace the semi-colon with curly braces, like so:</p>
  
  <pre><code>void Button::InitButton() { 
  }
  </code></pre>
  
  <p>However, I'll often forget the class name, or accidentally type it before the return type. This also happens for any static variables I need to define in code. This seems small, but piles up since I'm at the beginning phase of a project. Is there a quicker way to auto-generate these in Visual Studio C++? Or a best practice I'm missing out on?</p>
  
  <p>EDIT: It appears this has been asked before: <a href="https://stackoverflow.com/questions/8023992/auto-create-implementation-in-visual-studio-c-2010-possible">Auto-create implementation in Visual Studio C++ 2010</a></p>
  
  <p>EDIT 2: The best solution for me appears here: <a href="http://www.radwin.org/michael/2011/05/10/stubgen/" rel="noreferrer">http://www.radwin.org/michael/2011/05/10/stubgen/</a></p>