是否可以通过 Resharper 对代码进行排序?
CodeRush 有一个名为 cr_ClassCleaner 的漂亮插件,它允许我对类中的元素(例如方法、私有变量等)进行排序。
Resharper 5.x 可以通过产品或插件来做到这一点吗?
CodeRush has this nifty plugin called cr_ClassCleaner that allows me to sort the elements in the class (e.g. methods, private variables, etc...).
Can Resharper 5.x do this, either via the product or plugins?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是 - ReSharper、工具、清理代码。
他们最近在博客中介绍了自定义生成的类型布局。
Yes - ReSharper, Tools, Cleanup Code.
They recently blogged about customising the type layout this generates.
代码清理中有一个选项可以对类型成员重新排序。这将作为全面清理的一部分来完成。如果您只想重新排序,则可以创建仅包含该步骤的清理配置文件。您可以有多个清理配置文件。
There is an option in code cleanup to reorder type members. This would be done as part of a full cleanup. If you wanted to only reorder, you could create a cleanup profile that only included that step. You can have multiple cleanup profile.
Ctrl+Alt+F(如果您使用的是 IDEA 配置文件)将带您进入清理代码菜单,您可以在其中实现此目的。
Ctrl+Alt+F (if you're using the IDEA profile) will take you to the cleanup code menu where you can achieve that.