是否可以通过 Resharper 对代码进行排序?

发布于 2024-10-18 00:56:06 字数 112 浏览 13 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

煮茶煮酒煮时光 2024-10-25 00:56:06

是 - ReSharper、工具、清理代码。

他们最近在博客中介绍了自定义生成的类型布局

再浓的妆也掩不了殇 2024-10-25 00:56:06

代码清理中有一个选项可以对类型成员重新排序。这将作为全面清理的一部分来完成。如果您只想重新排序,则可以创建仅包含该步骤的清理配置文件。您可以有多个清理配置文件。

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.

燕归巢 2024-10-25 00:56:06

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文