cheptsov / AdvancedExpressionFolding

https://plugins.jetbrains.com/plugin/9320?pr=idea
140 stars 30 forks source link

Fold short javadoc comments into one line #140

Open stoerr opened 4 years ago

stoerr commented 4 years ago

In Java Source files you often have short javadoc comments like

/**
 * Starts an update process on the remote side.
 */

which needlessly take up precious vertical space, but are formatted like that by the default IntelliJ formatting options. If they are one-liners, the plugin could fold them without loss of information to:

/**  Starts an update process on the remote side. */

That would help nicely in environments where you are not allowed to change formatter settings! Unfortunately, the IntelliJ option "fold documentation comments by default" goes too far since it looses information so that you might have to manually open all comments since that looses information. This would never loose anything.