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
 Feature Requests
 New documents template
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ShayEr
New Member

4 Posts

Posted - Mar 07 2004 :  03:48:07 AM  Show Profile
Hi,

In our company we need to enter a headers lines into the h and the c/cpp files. it would be nice if the code templates would be able to define those lines, meaning each time that I create a news c#/c/cpp/etc files those lines will be inserted using the code template engine.

support
Whole Tomato Software

5566 Posts

Posted - Mar 07 2004 :  09:33:07 AM  Show Profile
You can create your own templates. They will not be inserted automatically. That extra step you must do each time you create a new file. Use the "Insert Code Template" button in the VA X toolbar.

http://www.wholetomato.com/x/products/features/templates.html?more=yes

Whole Tomato Software, Inc.
Go to Top of Page

ShayEr
New Member

4 Posts

Posted - Mar 07 2004 :  12:46:49 PM  Show Profile
Yes, I know that I can do that. But I think that I would be nice if very new files that I create will automatically have a code template.
Go to Top of Page

ShayEr
New Member

4 Posts

Posted - Mar 07 2004 :  1:00:42 PM  Show Profile
OK, I can ALMOST do it myself...

The following macro will add Hello world each time that a new cpp doc is created. All i need from VAX is a command that will paste a code template.

sub Application_NewDocument(theDocument)
if (theDocument.Language = dsCPP) then
ActiveDocument.Selection = "Hello World!"
End If
end sub
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 07 2004 :  5:34:45 PM  Show Profile
Perhaps you could insert the header from within the macro itself, ie not use a code template at all.

Whole Tomato Software, Inc.
Go to Top of Page

ShayEr
New Member

4 Posts

Posted - Mar 08 2004 :  02:17:22 AM  Show Profile
I can but i want stuff like %USERNAME% and %Day%. o well, i guess i cann do that stuff in my macro also.
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