mp said:
[...]
Sub Somesub()
Dim ProcName as String = "SomeSub"
moDebugger.ProcStart (ProcName)
....code...
moDebugger.ProcEnd (ProcName)
End Sub
with mztools in vb6 I could insert that with a keystroke in any sub/func
and it would 'read' the sub name and fill in accordingly
I haven't verified, but I know the snippets feature in VS supports
context-sensitive variables in the snippet. I'm pretty sure it supports
the scenario you describe directly.
similarly there were various other sections of code that appeared
somewhat repetitively in various routines i used to write, it was handy
to be able to insert any text with a keystroke combination when needed.
Have you tried the snippets feature itself? Why are you asking for
something ".similar to the snippets functionality"? Why not just create
and use a snippet?
Pete