Vincent Tang
Vincent Tang

Reputation: 4170

Hide Javascript comments in chrome dev tools?

I'm using chrome dev tools to debug and understand code from a javascript-based repo.

I write down lots of inline comments on my forked repo. So I can jot down the insights I get during each debug iteration. My forked repo is polluted with comments as a result. It makes it a bit hard to read the source material in the debugger.

What would be nice is if I could just "hide" javascript comments in chrome dev tools.

Does such a thing exist? It seems like a feature the browser should be able to handle. All I could find is the ability to hide html comments only.

enter image description here

Upvotes: 0

Views: 458

Answers (1)

Nick Coad
Nick Coad

Reputation: 3694

No, there is no way to do what you're asking. The closest you could get is to have an automated task run over your JavaScript to actually remove the comments, but this would actually remove them, not just hide them visually.

Upvotes: 2

Related Questions