Is there a way to construct a "smart" code snippet?

  • Thread starter Thread starter forest demon
  • Start date Start date
F

forest demon

what i want is a snippet of an XML comment, that when inserted above a
method, will pickup stuff like the return value, etc.

by default, a /// will supply method parameters, but not much else.

thanks...
 
/// *does* pickup return value. The only useful thing that I think it
could provide (from source code) is the exception, and possibly
permission (declarative; imperative would be too complex) elements...
perhaps you could log them (and anything else you think it should do)
as a VAE on "connect"?

(http://connect.microsoft.com/VisualStudio/feedback)

Marc
 
I'll second the vote for GhostDoc. I use it, and it's great. No, it
doesn't always work, but it does a pretty good job.
 
It also guesses at comment for standard method names.

Does it do a better job than humans? What I mean is, if the comment can be
inferred from the method name, what's the point of the comment?

///ark
 
Soething like:

i++; // Add 1 to i

JR

Mark Wilden said:
Does it do a better job than humans? What I mean is, if the comment can be
inferred from the method name, what's the point of the comment?

///ark
 

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