Behaviour of #region keyword
Answered
Hi,
is there any possibility to change the behaviour of the #region preprocessor keyword?
I want to have the following behaviour:
1.) If I open a file the first time, all #region parts should be collapsed.
I was not able to find such a settings. Even in "Editor -> General -> Code Folding" there is no field to enable a "collapse by default" of #regions.
2.) When I open a region and close the file, Rider should remember this state. So next time I open the same file in the same project, the region should be still open. Of course this should be just a personal settings and not be shared within the version control system.
Best regards,
André
Please sign in to leave a comment.
Hello Andre,
Sorry for not having an answer to your question, as i myself am also looking for an answer.
So did you manage a solution? I would really like the same behavior with code regions.
In fact, when i work in the Unity3D engine editor, the darn code regions open up (un-collapse) every time i save a C# file in Rider and it compiles in the Unity engine editor. This is seriously frustrating, since i want collapsed regions to stay collapsed until i decide to "expand" them again.
Sorry for the rant.
Cheers
Hi
Unfortunately, I was not able to find a solution for that. Maybe this will be implemented in a later version?
Best regards,
André
Hello!
Please take a look at this issue RIDER-10080
Best regards,
Alexander