I find it useful to right-click on an interface, and click "Implement Interface." This will create any missing interface members in a new region. However, if your interface has recently changed (ie some of the members already exist, some do not) the members will not be placed together in the same region.
开发者_开发问答Is there an easy way to collect all the members of a given interface in the same #region?
For bonus points, is it possible to have the members moved so they appear in the same order as in the interface declaration?
With Visual Studio of any edition; I don't think it's possible.
With the third party plugin ReSharper I think so (reformat the code after the interface implementation).
精彩评论