Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VC++2010 Automatically generate method stub or prototype

I'm new to C++ and Visual Studio, coming from Java and Eclipse;

Say I write a new method for a class. Is there a shortcut or some quick way to automatically add the method prototype to the class definition in the header?

Likewise, if i add a new method prototype to the header, is there a shortcut to generate a method stub in the implementation?

like image 829
terryhau Avatar asked Apr 22 '11 05:04

terryhau


1 Answers

I don't know if VS 2010 has this feature, previous versions did not. But the problem can be addressed by 3rd party extensions. Visual Assist X has the commands "Create Declaration" and "Create Implementation".

like image 154
Ralph Avatar answered Sep 27 '22 22:09

Ralph