共用方式為


Code Template Add-In for Code Expansions in VS .NET 2003

Eddie sent this one my way for posting.  With this Add-In you can define keywords that will be expanded out to the code chunks you've attatched to those keywords.  From the site:

https://www.codeproject.com/useritems/CodeTemplateNET.asp

Code<Template>.NET is an addin for Visual Studio.NET that provides a mechanism for inserting commonly used text fragments into your source code.

The text fragments used by Code<Template>.NET are contained in files called CodeTmpl.* (where * is a per-language extension) which are located in the user's roaming profile. These files are originally copied from sample files which are located same directory as the addin's executable. The format of these text files is very simple: named blocks contain the text fragments that will be inserted in your source code. Besides the directly inserted text, these fragments can also contain tags which represent replaceable keywords and prompted values. These named blocks will show up as menus and submenus in Code<Template>.NET's toolbar button. When you click on one of these menu items, the corresponding text fragment will be inserted in the active window's insertion point.

Thanks Eddie!

Enjoy - Josh

Comments

  • Anonymous
    April 26, 2004
    dddd
  • Anonymous
    May 27, 2004
    The comment has been removed
  • Anonymous
    June 13, 2004
    nnnnnnnnnnnnnnnnnnnnn