Open CodeTmpl.txt command for CodeTmpl Add-In

.

Recently I've downloaded the CodeTmpl Add-In contributed by Darren Richards. In my opinion it is very useful utility, very simple in customizing and encourages good coding habits. Personally i am using it exhaustively.

However sometimes I've found it frustrating to find and edit the CodeTmpl.txt file. Here are the steps you have to perform to make a change to it:

  1. Find a MSDEV\SharedIde folder.
  2. Open a CodeTmpl.txt file in a text editor or in Visual Studio. If you are opening it in Visual Studio do the : Right-click > Properties > Language > C++.
  3. Do your editing , and save it.
  4. Go back to Visual Studio if were out of there.
  5. Hold "Control" key to reload the CodeTmpl.Txt and click the toolbar button.

The five steps above to have to do in the initial "setup" and every time you've discovered a mistype, want to make change or add a new peace of code to the template file.

The solution is just one step away. In the same manner as the reloading of CodeTmpl.txt done (remember when you hold "Control" key), when your press "Control" key and press toolbar button the new option in menu will appear "Open CodeTmpl.Txt". By choosing this option you will cause the add-in do all five steps for you.

That way making changes to CodeTmpl.txt is now simpler and fun :).

For those who cares

The change in code was made in CTAddin::CTInsCodeTmpl() located in CTAddIn.cpp.

 

Hope it will help to the guys using this great utility.

 

Download CodeTmplEx.DLL - 124 KB

Download source - 19 KB

Date Last Updated: February 3, 1999



Comments

  • Be careful with install with VS6.

    Posted by Legacy on 03/10/1999 12:00am

    Originally posted by: Hyunil Choi

    As you know, VisualStudio6 has been changed directory structure. The AddIn finds template file by 'getenv("MsDevDir")' and "\\CodeTmpl.txt".
    You need to check environment variable "MsDevDir" and should install to that directory. I think that doing this prevents installation failure.

    Reply
  • Useful

    Posted by Legacy on 02/06/1999 12:00am

    Originally posted by: Dr Soil

    I too found this macro exceedingly simple and useful. I cannot
    imagine life without it!

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: November 20, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Are you wanting to target two or more platforms such as iOS, Android, and/or Windows? You are not alone. 90% of enterprises today are targeting two or more platforms. Attend this eSeminar to discover how mobile app developers can rely on one IDE to create applications across platforms and approaches (web, native, and/or hybrid), saving time, money, and effort and introducing apps to market faster. You'll learn the trade-offs for gaining long …

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds