How do I sort my code (by method name) in Visual Studio 2008?

前端 未结 5 2381
夕颜
夕颜 2021-02-19 20:22

Short of cutting and pasting, is there a way to sort the methods in my classes in Visual Studio 2008? I like orderly code.

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 20:47

    Resharper will do a good job in a limited way. It depends on how much you want. For example, it wont go and reorder your overrides in an asp.net page based on lifecycle, or anything like that, but it will keep properties, fields, methods and what not clearly grouped

    EDIT: By the eway i was refering to auto reordering aka reformatting.

提交回复
热议问题