Change the standard XML Documentation, ///

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
Is it possible to change the standar XML Documentation which is created when
you type ///? For example I want a tag named "CreatedBy" and it would be nice
if the logged on user name is preentered.
Regards
/Niklas
 
Hi Niklas,

You can't change the standards, but since it's xml you can use any tag that
you want:

/// <CreatedBy>Niklas</CreatedBy>

If you use something like SandCastle to build compiled docs I'm not sure if
you'll be able to make your custom tags meaningful, however.

There is no easy way to automatically serialize the name of the logged on
user, AFAIK. Code snippets show promise for future releases of VS but they
won't help you now. I think the best way would be to write a custom add-in
and assign it a some key combination.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top