Answer the question
In order to leave comments, you need to log in
IntelliJ IDEA (or any Jetbrains IDE) - is it possible to hide asserts somehow?
Hello everyone.
I had to smear several classes with a lot of asserts (which will remain there forever), because of which the code became poorly readable. Does IntelliJ have any plugin to hide them? Collapse lines / reduce lines with asserts transparency / mod, just not to show these lines ?
Answer the question
In order to leave comments, you need to log in
Well, in principle, any code can be hidden (code folding) in IDEA.
You can, for example, select the code and click ctrl + ' . '
You can try to select the code, then click ctrl + alt + T
(Code -> Surround with) and select a tag convenient for you, and then write a name for fold and hide the block
https://www.jetbrains.com/help/idea /code-folding-s...
I have not seen plugins that would automatically hide assert, but in principle you can write a small plugin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question