开发者

Visual Studio: Collecting the members of an interface in the same region

开发者 https://www.devze.com 2023-01-11 22:41 出处:网络
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

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).

0

精彩评论

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