[Feature request] Adding regions
Posted: Mon Jan 26, 2009 8:35 pm
Hi,
I would like CL to support regions, like VStudio, but in another way. I mean, with VS, writing
Creates a region that can be folded. This is usefull when the same source code file is written in logical parts. Also, #pragma is a preprocessor directive and other compiler than M$, like gcc, don't like it until we disable warning for this directive ; that's why i would prefer a c comment tag to use to create a Region.
Would it be possible to create a region using a specific c comment tag, like
?
This would be displayed in the editor
If '+' is clicked, then
Creating a region is almost the same as creating a { } block, with a name.
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).
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).