Automatically Add Regions to Code in Visual Studio

后端 未结 7 2051
轻奢々
轻奢々 2021-02-20 06:09

My team absolutely loves using regions, and with that in mind it\'s pretty much become a de-facto standard in our code. I recently came to realization that I\'m sick of writing

7条回答
  •  无人共我
    2021-02-20 06:54

    If you have Resharper then the File Structure window is very handy for managing regions, allowing simple drag and drop to move blocks of methods/properties etc. around. It shows your regions (which are collapsible) & syncs with the main code view too:

    https://www.jetbrains.com/help/resharper/Reference__Windows__File_Structure_Window.html

    eg A region called preview shown here:

    Here

提交回复
热议问题