在 Visual Studio 中自动生成函数文档 [英] Auto generate function documentation in Visual Studio
本文介绍了在 Visual Studio 中自动生成函数文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有一种方法(希望是键盘快捷键)可以在 Visual Studio 中创建自动生成函数标题.
I was wondering if there is a way (hopefully keyboard shortcut) to create auto generate function headers in visual studio.
示例:
Private Function Foo(ByVal param1 As String, ByVal param2 As Integer)
它会自动变成这样......
And it would automagically become something like this...
'----------------------------------
'Pre:
'Post:
'Author:
'Date:
'Param1 (String):
'Param2 (Integer):
'Summary:
Private Function Foo(ByVal param1 As String, ByVal param2 As Integer)
推荐答案
制作三个单一的评论标记"
Make that "three single comment-markers"
在 C# 中是 ///
默认情况下会吐出:
/// <summary>
///
/// </summary>
/// <returns></returns>
这里是 有关编辑 VS 模板的一些提示.
这篇关于在 Visual Studio 中自动生成函数文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文