How to copy comments when creating an interface from a class in Visual Studio?

In Visual Studio, I can use the Refactor -> Extract Interface ... option to create an interface from the public methods in the class. However, this does not copy the XML comments, and I end up spending several minutes copying and pasting. Are there any macros or add-ons that can use existing class comments when automatically creating an interface?

+4
source share
2 answers

Have you tried using ReSharper ?

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

+3
source

GhostDoc addin will probably help you here.

+2
source

Source: https://habr.com/ru/post/1346051/


All Articles