Collapse all #regions only(!) in C# (Visual Studio)

前端 未结 10 1692
予麋鹿
予麋鹿 2020-12-12 15:11

There\'s a number of keyboard shortcuts and menu commands to automatically expand or collapse all foldables in the current document. Ctrl+M, Ctrl

10条回答
  •  死守一世寂寞
    2020-12-12 16:11

    I dont know if this is new, but there is a setting for the c# text edior:

    Settings -> TextEditor -> C# -> Advanced -> Collapse #regions when collapsing definitions.

    When its set CtrlM CtrlO will collapse the #regions.

提交回复
热议问题