Modern JVM languages such as Kotlin, Groovy, Scala and some others offer many language features that let you write code in a more concise and expressive manner. These features include type inference, properties, interpolated string, range and tuple literals, enhanced operators, clojures, implicits, smart casts and any more.
This plugin extends the IDE’s folding features to emulate some of these modern languages’ features helping fight verbosity.
For more information, read the blog post.
For more clarity, you may try to adjust your color scheme: go to Settings | Editor | Colors & Fonts | General, select Folded text, uncheck the Background color, and change the Foreground color to #000091 for the default scheme and #7CA0BB for Darcula.
To disable certain types of folding, go to Settings | Editor | General | Code Folding | Fold by default: | Advanced Java Folding Plus.
This plugin is fork of Advanced Java Folding.
The original plugin focuses on simplifying verbose syntax and reducing the mental burden on developers.
On this basis, Advanced Java Folding Plus adds quick input functions to reduce the burden on developers' fingers.
-
You can now directly enter an operator to call the corresponding method (in the form of a code completion autopopup).
For example, consider the following code:BigDecimal a = new BigDecimal("1.0"); BigDecimal b = new BigDecimal("2.0"); BigDecimal c = a
When entering
+afteraon the third line, an autopopup for the corresponding methodadd(BigDecimal augend)will automatically appear.
Upon selection,a +will be converted toa.add(), with the cursor positioned inside the parentheses awaiting the input of parameterb.
Alternatively, ifaandbare already written, entering+between them will also trigger the autopopup foradd(BigDecimal augend).
Upon selection,a + bwill be converted toa.add(b).Currently supported operations:
- BigDecimal/BigInteger:
+→add,-→subtract,*→multiply,/→divide - All classes:
===→equals
- BigDecimal/BigInteger:
-
To reduce visual clutter, the method call will automatically collapse into operator form after invocation.
For example, whena.add(b)is completed and the cursor moves out of the parentheses, it will automatically collapse intoa + b.