Without actually changing the code, the only thing I know is to use the exposition. You can βhideβ the selection, which basically creates a section of the schema that you can expand and collapse in the same way as a class, namespace, method, #if block, etc. To do this:
- Select the lines you want to collapse.
- Choose Edit \ Crop> Hide Selection (or Ctrl + M , Ctrl + H using the C # keyboard layout)
Now the selection is collapsed, and you can expand it and re-collapse it anytime you want, as a method. (e.g. with a +/- glyph on the left or with Ctrl + M , M )
source share