Hello all. I want to develop an Add-in for Visual Studio.Net,
specifically for my company. The problem is developers in my company
tend to not develop their VB functions in our required spec. SO what I
want to do is alter the behaviour of the function auto complete in the
ide. For example, when a developer types:
Public Function foo(a as string) as integer
and hit return VS.Net will fill in:
Public Function foo(a as string) as integer
End Function
Instead what I want it to do is :
take
Public Function foo(a as string) as integer
and complete it as
' :::Developer Commentary goes here for doc tool:::
Public Function foo(a as string) as integer
try
catch
end try
End Function
Any pointers on how to do this? Could you point me to book, articles,
etc.? All help is greatly appreciated.
Ravikanth[MVP] - 14 Apr 2004 10:26 GMT
use QuickCode.Net(http://www.dvxp.com/downloads.asp) which is a VS.Net Addin that allows you to setup code templates that are based on a pattern. If you type that small pattern and hit ALT-Q(I use SHIFT-ENTER easier for me) it will take the pattern you typed (usually used for parameters) and substitute it with the template you setup.
HT
Ravikanth[MVP]