This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Code folding



Hello,

Is there a way in Code Composer Studio 5.1.1 to collapse a section of the code that one highlights?

Suppose at the beginning of the main routine there are some variable declarations and the code looks like (simple example)

// variable declarations
int a;
float b;
unsigned int c;
long d;
...
unsigned long q;

and I want to fold all the declarations such that only the preceding comment shows (and takes space in the editor window).

Making a separate function out of the variable declarations and collapsing it would go in this direction, but I like to avoid creating an extra function for each code section. Is there a functionality to do this, or a trick?

Regards,

Adrian