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
 Per Project Snippets?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

spectecjr
Ketchup Master

USA
64 Posts

Posted - Mar 07 2009 :  4:46:56 PM  Show Profile  Reply with Quote
Hey guys;

Any chance of getting per-project snippets that would override the base snippets?

I've got some header file macros which automatically set things up for me. It'd be nice to have a way to override these on a per project basis, so that the header could vary based on the project (mainly for PCH inclusion, but I can see it being used for other things).

If you stored them in a file alongside the vcproj file, I can see it being VERY useful.

Thanks!
Si

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 08 2009 :  4:41:39 PM  Show Profile  Reply with Quote
I'm a little confused. Are you asking how to replace your VA snippets? Is so, you can do it by replacing its file. You can read more about this:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7024

Later you wrote about header file macros and how to replace those header files. What do you mean by header file macros? C++ defines or something else?
Go to Top of Page

spectecjr
Ketchup Master

USA
64 Posts

Posted - Mar 18 2009 :  3:01:24 PM  Show Profile  Reply with Quote
quote:
Originally posted by accord

I'm a little confused. Are you asking how to replace your VA snippets? Is so, you can do it by replacing its file. You can read more about this:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7024

Later you wrote about header file macros and how to replace those header files. What do you mean by header file macros? C++ defines or something else?



No, specifically, say I have a solution with 5 different projects.

For each of those, I have /!@ defined as something different in the VA Snippets - something like this for a .cpp file:

/**
 * This is my standard header and copyright info
 */
#include "..\\Core\\precomp.h"
#include "$FILE_BASE$.h"

$end$

#endif //$FILE_BASE$__GUARD


... but in another project, it might look like this:

/**
 * This is my specific library header and copyright info.
 */
#include "..\\Lib\\Inc\\precomp.h"
#include "..\\Include\\$FILE_BASE$.h"

$end$

#endif //$FILE_BASE$__GUARD



... so ideally, I want to be able to stick a projectname.snippets file in the folder alongside the vcproj file, and when I'm working with a file in that project, VAX should load the project-specific snippets and use them to override any snippets defined in the default one.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 18 2009 :  5:27:33 PM  Show Profile  Reply with Quote
*ah* Thank you for make it clear

We are considering to implement project specific snippets:

case=1008

For now, you can use different shortcuts for different projects as a workaround to generate your header files.

Edited by - accord on Mar 18 2009 5:28:46 PM
Go to Top of Page

spectecjr
Ketchup Master

USA
64 Posts

Posted - Mar 27 2009 :  9:11:16 PM  Show Profile  Reply with Quote
Awesome - thanks guys!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000