开发者

How Do I Copy Comments When Generating an Interface From a Class In Visual Studio?

In开发者_Go百科 Visual Studio I can use the Refactor -> Extract Interface... option to generate an interface from public methods on a class. However this does not copy across the XML comments and I end up spending several minutes copying and pasting them. Are there any macros or add-ins that can use the existing comments on the class when auto creating an interface?


Have you tried using ReSharper?

When I extracted an interface using ReSharper, the XML comments on the extracted methods were preserved.


The GhostDoc addin will probably help you out here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜