Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 C# 项目评估 Jetbrains Rider 2017.1.1。我需要根据特定规则自动重新排列代码(例如将私有方法移到底部,将公共方法移到顶部……)。我将此功能与 IntelliJ IDEA 一起使用。
在 Rider 中,“代码 -> 重新排列代码”选项可用但显示为灰色。我错过了在某处激活它还是它还没有可用?如果是这样,是否有合适的格式化插件?
Rider 2017.2 EAP3 没有实现代码排列设置的UI。但是,Rider 尊重 ReSharper 设置。如果您已在 ReSharper 中配置文件布局并将其保存到团队共享层,则在 Rider 中运行代码清理将应用您的布局。