IntelliJ Idea fold if and other statements in JavaScript, but not in Java. How can I get this feature? Maybe you know some plugin or settings?
I don't think that it's possible from Code > Folding or using the icons from the left bar (collapse/expand), but you can do it in a harder way: manually.
E.g.:
...
instead of that blockIn Android Studio, in order to fold a try/catch structure -
Now the complete try { .. } block will be folded.
If I want to reduce a try / catch section, it doesn't work for me on Intellij CI 2016, under Ubuntu 16.04 OS.
Even with shortcut or using menus.
Using menus Code > Folding > Fold Selection / Remove Section ( Ctrl + Period, where Period is the .), it'll close the entire function where the try/catch block is.
It doesn't work either if I use shortcut Ctrl+ Shift + .
Seems to be a conflict with other shortcut existing on the OS I'm running onto.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With