c++ - Create Code Snippet for Method Comments -
i'm trying make code snippet using snippet manager in visual studio 2013 c++. code snippet ideally provide c#-like comment template methods. suppose following method:
void mymethod( int a, float b );
i able type comment
on line above method, press tab, , have following populate:
// // describe 'mymethod' here. // - a: describe 'a' here. // - b: describe 'b' here. // void mymethod( int a, float b );
i have following far snippet:
<?xml version="1.0" encoding="utf-8"?> <codesnippets xmlns="http://schemas.microsoft.com/visualstudio/2005/codesnippet"> <codesnippet format="1.0.0"> <header> <title>comment</title> <shortcut>cmt</shortcut> <snippettypes> <snippettype>expansion</snippettype> </snippettypes> </header> <snippet> <declarations> <literal> <id>methoddetails</id> <tooltip>describe intent of method here.</tooltip> <default>describe method here.</default> </literal> </declarations> <code language="cpp"> <![cdata[// // $methoddetails$ // ]]> </code> </snippet> </codesnippet> </codesnippets>
my question is: is possible auto-generate template stubs parameters of method below snippet? , if so, how generate those?
Comments
Post a Comment