How can I sort Fields, Properties and Methods in Visual Studio?

前端 未结 5 1400
迷失自我
迷失自我 2020-12-29 18:08

I know that for clarity in codes, I have to write first fields then constructor and then methods etc. But how can I automate it in Visual Studio?

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 18:55

    Visual Studio has no feature that allows re-ordering already written code. That's the domain of add-ons. Resharper has a "Reordering type members" feature but that's only supported for C#, not for VB.NET code. NArrange seems to be able to do this. No idea, never used it myself.

提交回复
热议问题