1

Is it possible to fold blocks of C++ code in Eclpise (neon). With the default folding options functions, structures, etc are nicely folded, but blocks of code cannot be folded, eg.

void foo(){              // <- can be folded
     ...
}

void bar(){
     ...
     {                  // <- cannot be folded
         ....
     }
}

In the preferences there is a option to "Select folding to use" and the docs claim that I could choose among the available choices, but there is only a single option: Default C Folding.

How can I enable folding for blocks of code that are no functions or structures?

PS: This questions title is actually exactly what I am looking for... How to fold blocks of code. However, the answers are only explaining how to enable folding.

Community
  • 1
  • 1
463035818_is_not_an_ai
  • 109,796
  • 11
  • 89
  • 185
  • I was looking for the same feature in Eclipse but apparently, it depends on the C/C++ plugin which installed and the classic one (CDT) doesn't have any option to make code blocks folded. – Mark K. Aug 03 '17 at 21:01

0 Answers0