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.