F
F
floppa3222021-04-11 11:10:30
IntelliJ IDEA
floppa322, 2021-04-11 11:10:30

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

1 answer(s)
O
Orkhan Hasanli, 2021-04-11
@Lite_stream

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 question

Ask a Question

731 491 924 answers to any question