开发者

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

开发者 https://www.devze.com 2023-02-20 20:00 出处:网络
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 en

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

精彩评论

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