cancel
Showing results for 
Search instead for 
Did you mean: 

How to collapse text (code) in CUBEIDE?

OMarc.1
Associate III

Hi all.

How to enable the function to collapse text like in the picture below:

0693W00000LwlJoQAJ.pngIn CUBEIDE I don't have this function.

0693W00000LwlK8QAJ.pngThank you for your answer.

Kind regards,

Oleksii

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

The STM32CubeIDE is based on an original, only slightly adapted Eclipse and therefore behaves largely the same. For the editor, Eclipse uses a default folding for C, which does not provide for folding for various elements, e.g. IF statements.

To activate it nevertheless, all you need to do in the menu is to activate the option Enable Folding of control flow statements (if/else ...) and make further settings if necessary in:

Windows > C/C++ > Editor > Folding

Please close existing editor windows and open them again to see the effect.

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Peter BENSCH
ST Employee

The STM32CubeIDE is based on an original, only slightly adapted Eclipse and therefore behaves largely the same. For the editor, Eclipse uses a default folding for C, which does not provide for folding for various elements, e.g. IF statements.

To activate it nevertheless, all you need to do in the menu is to activate the option Enable Folding of control flow statements (if/else ...) and make further settings if necessary in:

Windows > C/C++ > Editor > Folding

Please close existing editor windows and open them again to see the effect.

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.