Hello,
I'm new to GAT and want to evaluate whether it may fit my needs or not. Therefore I need some additional information:
I've
read that GAT can generate code from templates. Can code generation
only be used when a new project is created or (now comes the important
part :) ) can you even specify to insert documentation-headers etc.
when a new class/method is declared in an existing file?
Thanks in advance!
Mak | | -Mak- | You can do whatever VS allows you to do ;) GAT is a mechanism to contextualize so-called recipes (that appear either/both as tasks in the task list or context menus) so that they show up only when it's relevant (i.e., context menu of a the text editor, but only when you're over a class which inherits from [Foo], has the [BarAttribute], implements interface X or is using namespace Y. Pretty much whatever you want.
GAT will call your so-reference IsEnabledFor method, and you'll be able to perform all those checks against the current CodeModel element (this is VS object model) and determine whether you want your operation to be available.
Once someone executes the recipe, your actions will be able to again talk to VS and have it do whatever the VS APIs let you do.
HTH,
Daniel Cazzulino [Solutions Architect MVP] | | kzu | Thanks! That is good to know!
I want to solve a problem with GAT, which should not be a very difficult task, I think. I want to create a code-template, which inserts a customizable "documentation-header" whenever a new method/class is created (this template should be executed in new and in existing files). So every developer is kind of "forced" to write documentation for his code.
I'm currently reading the HelpFiles, which came with GAT to get an idea where to start..... Maybe someone can give me hint, where to begin with my task.
Sorry, for some silly questions. I'm a young guy who just startet to work hisself into VS05TFS so I'm relatively new to everything in VS. :)
| | -Mak- | | edit:
today we are solving the mentioned problem with the help of snippets. I
thought GAT could do the job in a more comfortable way.... | | -Mak- |
|