使用ReSharper的安排在同一顺序成员实现的接口 [英] Use ReSharper to arrange members in the same order as implemented interface

查看:447
本文介绍了使用ReSharper的安排在同一顺序成员实现的接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用的ReSharper的类型的布局功能,因为他们在接口中声明,实现在同一顺序的接口成员排序?

Is it possible to use the Type Layout feature of ReSharper to sort the members that implements an interface in the same order as they were declared in the interface?

推荐答案

没有,很遗憾你不能直接这样做。但是,像基里尔说,你可以使用同样的规则让他们的订单。

No, unfortunately you can't do that directly. But, like Kirill said, you can use the same rules to let them order.

此外,你可以让一个接口的ReSharper的小组成员成一个区域通过修改CodeCleanup简介

Additionally you can let Resharper group members of an interface into one region by modifying the CodeCleanup profile:

<Group>
    <ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/>
</Group>



另见:的 ReSharper的文件

自动分组后和排序,你可以通过调整ReSharper的结果文件结构

After the automatic grouping and sorting you can adjust the result via the Resharper "File Structure".

这篇关于使用ReSharper的安排在同一顺序成员实现的接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆