I would like CL to support regions, like VStudio, but in another way. I mean, with VS, writing
Code: Select all
#pragma region "this is a region"
...
#pragma endregion
Would it be possible to create a region using a specific c comment tag, like
Code: Select all
/* Region Parse CAPMT */
... This block can be automaticaly folded in or out in the editor.
/* Region Parse Elementary Stream */
... This is a subregion.
/* EndRegion
/* EndRegion */
This would be displayed in the editor
Code: Select all
+Parse CAPMT
Code: Select all
- /* Region Parse CAPMT */
... the code has been unfolded
+ Parse Elementary Stream
...
/* EndRegion */
Using these regions in source code is a good way to make a zoom in/ zoom out in the code. For example, you can choose to display or not all the error cases of a source file(parameters checks, errors values returned by functions, by choosing to unfold all "ERROR xxx" regions names).