提取C#源文件文档注释 [英] Extracting doc comments from C# source file

查看:557
本文介绍了提取C#源文件文档注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道,让你从一个cs文件中直接提取评论一些简单的文字,甚至剪贴板任何工具?更妙的是,如果这样的工具可以在方法级别工作了。

Does anyone know of any tools that allow you to extract comments directly from a .cs file in to some simple text or even the clipboard? Even better if such a tool could work at the method level too.

我的不可以寻找类似沙堡在编译的时候工作,我寻找的东西在单一源代码文件的工作。基本上,我需要复制方法签名和相关的文档注释的块到一个文本文件中,但我感到厌烦删除///和reformating的线条。我很想能够右键点击的方法和沿着复制文件到剪贴板的行的上下文菜单项。

I am not looking for something like Sandcastle that works at build time, I am looking for something that works on single source code files. Basically I need to copy a chunk of method signatures and the associated doc comments in to a text file, but I am getting bored of removing the "///" and reformating the lines. I'd love to be able to right click on a method and have a context menu item along the lines of "Copy documentation to Clipboard".

做任何这样的工具可用?

Do any such tools exist?

推荐答案

没有必要推出自己的,看看的 CR-文档编辑

No need to roll your own, have a look at cr-documentor.

CR_Documentor是一个插件
DXCore ,可以让你预览
什么文档会像
时,它的呈现 - 在Visual Studio中的一个工具窗口

CR_Documentor is a plugin for DXCore that allows you to preview what the documentation will look like when it's rendered - in a tool window inside Visual Studio.

它的工作原理相当好了,但我怀疑它一起运行与ReSharper的是一个有点不稳,所以我禁用它,直到我用它。

It works quite well, but I suspect it running along with Resharper is a bit shaky, so I disable it until I use it.

这篇关于提取C#源文件文档注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆