Feature #2396 2006-07-18 13:52

focusedwolf

some suggestions

1. in visual studio 2005 their is a collapsable-code region command thats used like this:

#pragma region Get CPU Brand String

UInt featureCount = FeatureCount(EXTENDED_FEATURE_STATUS_BIT); memset(cpuBrandString, 0, sizeof(cpuBrandString)); for(UInt i = CPU_BRAND_STRING_START_BIT, offset = 0; i < featureCount && i < CPU_BRAND_STRING_COUNT_BIT; i++, offset += 16) { Cpuid(CPUInfo, i); memcpy(cpuBrandString + offset, CPUInfo, sizeof(CPUInfo)); }

#pragma endregion

and this can fold into this: Get CPU Brand String with a box drawn around it...double click it and it unfolds

2. add a texteditor toolbar with a buttion for commenting or uncommenting selected text...do it like visual studio lol

Category
Interface
Status
Closed
Close date
2006-08-16 11:44
Assigned to
 
kidmosey 2006-07-19 07:27

>> 1. in visual studio 2005 their is a collapsable-code region command.

It seems refactoring your code would have the same effect, and would also make it easier to read in other editors besides C::B.

And inside functions, would it break any compilers to use the existing folding scheme?

[snip] { // Region: Get CPU Brand String UInt featureCount = ...; for (...) { ... } } // EndRegion [/snip]

>> 2. add a texteditor toolbar with a buttion for commenting or uncommenting selected text...

Okay, this one seems handy. Maybe even add the capability of switching between C and C++ comments for a block of code. (tri-state button? C/C++/none)

I haven't looked into it, but I wonder if plugins can add buttons to toolbars. That might be a cool feature, along with customizing the toolbars.

mandrav 2006-08-16 11:44

Both are already implemented.

1) folding symbols appear or blocks start. 2) Shift-Ctrl-C: comment block. Shift-Ctrl-X uncomment block.