Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Code Template problems
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tidhar
New Member

8 Posts

Posted - May 02 2005 :  05:20:46 AM  Show Profile
I'm using VAX 1301 in VS6 with Windows NT (with a special DLL I got from support for the options menu).
My code templates file (CPP.tpl) is almost as the original file, I haven't changed it much.
When I type "for" I expect the "for()\\n{\\n}" template to come up. Instead I get "r()\\n{\\n}".
In the CPP.tpl file I have r:return and for:for()\\n{\\n}.
There is no "r()\\n{\\n}" template anywhere in the tpl file.

Any ideas?

WannabeeDeveloper
Tomato Guru

Germany
775 Posts

Posted - May 02 2005 :  06:36:11 AM  Show Profile
Does this also happen when you use the original CPP.TPL file?

You should find the (unedited) original file in the \\Visual Assist X\\Templates\\Latest\\ folder.
If there's no such folder/CPP.TPL-file, simply tell us here, I'll upload one and provide you the download-link.

Go to Top of Page

tidhar
New Member

8 Posts

Posted - May 03 2005 :  03:24:04 AM  Show Profile
Ok, found the problem.
I tried the original and it worked fine, so I went back to my version to check it again.
I found that I had an extra blank line before the "for:" line.
I also had a blank line before the "while:" line and it caused the same error.
Anyways, it's working fine now.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 03 2005 :  11:45:09 PM  Show Profile
You'll be happy to know we are improving our interface to Autotext and Code Templates in a few builds. We've collapsed the two features into one, and called the combined feature Autotext.

You can type a shortcut and a known suggestion, ie Autotext of today, appears. You can include arguments in expanded Autotext, ie Code Templates of today. If you accept suggested Autotext that has arguments, a dialog pops up.

More later.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000