I cannot seem to enable to right settings to access the code editor option when wanting to surround custom regions of code in JetBrains Rider. I have seen some tutorials showing how its supposed to be working but I cannot get it right. I want to be able to fold custom regions of code in a xaml file, and give it a suitable name as found in Visual Studio.
I accessed the following: "Settings -> Editor -> General -> Code folding" and enabled custom folding regions.
The working code in Visual Studio looks as follows:
<!--#region My custom region-->
<TextBlock Grid.Row="1"
Grid.Column="0"
Margin="90,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="20"
Foreground="White"
Text="RF Broadcast Interval (ms)" />
<!--#endregion-->
This enables you to create custom code folding regions. This is obviously in a xaml file, and I want to be able to implement the same functionality in Rider.
https://blog.jetbrains.com/idea/2012/03/custom-code-folding-regions-in-intellij-idea-111/
The above link shows a dropdown when selecting the "Surround with" option, in it, there is a option "<editor-fold...> Comments" which is supposed to function the same, however, this seems to be in a cs. file and not xaml. I have the option to still make use of the #region property in my classes, but have nothing to use in my xaml files.