Yes you are right. HideShow minor mode allows you to hide / show a block of text, in particular multi-line comments.
Hide / show comments is not included in the standard package, but on the wiki page you will find the code that does the trick.
Then, the isearch command ignores hidden comments.
HOWEVER: replace works in the entire buffer, including hidden blocks.
Oleg Pavliv
source share