I have comments such as:
/// <summary>
/// Creates a filename given the end date provided
/// </summary
/// <returns></returns>
public static string GetFileName(DateTime date, string filePath) {
var ret = string.Format("file_{0}[{1}].txt", date.ToString("yyyyMMdd"), date.ToString("HHmm"));
return Path.Combine(filePath, ret);
}
Visual studio automatically created the comments above when I typed ///.
Is there away to re-generate the above comments and add in the Parameters, which I've newly added recently?
I know I can delete and redo it by typing /// and it will automatically generate with the proper parameters. Is there a a different way?
GhostDoc is a Visual Studio extension that could help out with generating these types of documentation.
I've also heard good things about Resharper, but haven't personally used it.
Otherwise, I usually just retype the /// if it ever changes.