如何自动重新排列Jetbrains Rider中的代码?

时间:2017-09-14 14:31:46

标签: c# rider

我正在评估Jetbrains Rider 2017.1.1的C#项目。我需要根据特定规则自动重新排列代码(比如将私有方法移到底部,将公共方法移到顶部,......)。我在IntelliJ IDEA中使用了这个功能。

在Rider中"代码 - >重新排列代码"选项可用,但显示为灰色。我错过了在某个地方激活它还是只是不可用?如果是这样,是否有适当的格式化插件?

1 个答案:

答案 0 :(得分:5)

As for Rider 2017.2 EAP3, the UI for code arrangement setting is not implemented. However, Rider respects ReSharper settings. If you have configured File Layout in ReSharper and saved it to a team-shared layer, then running Code Cleanup in Rider will apply your layout.