Is there a way to do something like this in Javascript?
JavaScript
x
8
1
/*
2
code
3
/* Multiple
4
line
5
comment */
6
more code
7
*/
8
When I test, I often need to comment out large chunks of code that already have multiline comments.
Advertisement
Answer
I think your IDE have find and replace option.
Add /*
at starting
and */
at ending
Within the code block
Replace */
with *//*
then to if you want to remove the comments you made :
Remove /*
at starting, Remove */
at ending
Within the code block
Replace *//*
with */