How to reorder type members with Resharper?

前端 未结 8 499
名媛妹妹
名媛妹妹 2021-02-01 12:48

Typical scenario: a class that a lot of people have worked on. I\'d like to sort methods, properties, etc... in alphabetical order.

I\'d like to be able to do this wit

8条回答
  •  一个人的身影
    2021-02-01 12:52

    If you are reordering parameters on specific methods, you can use the Refactor > Change Signature if your cursor is on a method name. I use the IntelliJ shortcuts, so for me, the command is Ctrl+Shift+R followed by Ctrl+F6.

    After doing so, a dialog will pop up which allows you the reorder method parameters. It will even refactor any implementations of an interface.

提交回复
热议问题