4

In Rider, C# #regions will be shown as auto-collapsed in the Structure pane. If you open the region in the structure pane then make any edit anywhere in the open file they auto-collapse again.

Is there any way to change this behavior? I'd like to default them open and edits to not make any difference to the collapse state.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Ben Roberts
  • 199
  • 1
  • 8

1 Answers1

3

you can change this in Preferences | Editor | General | Code Folding

kashmervil
  • 104
  • 4
  • My understanding is that these will only change code folding in the edit window - toggling the 'preprocessor regions' tickbox in there makes no difference to how the structure panel handles state. – Ben Roberts Aug 14 '17 at 20:16
  • 1
    Sorry, misunderstood the question. Code Structure node shouldn't collapse on the document modifications. Filed an issue https://youtrack.jetbrains.com/issue/RIDER-8665 – kashmervil Aug 15 '17 at 12:41