Commenting in HTML
Hi,
is there a way to prevent commenting of the whole line? RIght now, in HTML if I want to comment out a section of a line it, even if I select it, it still comments the whole line. Forcing me to edit the line (which is a waste of time). is there a setting someplace I'm missing?
Please sign in to leave a comment.
I think it is a bug. You should file a ticket there: http://youtrack.jetbrains.net/issues/WI
Hi Stephen,
I think you are using "Line Comment" ( Ctrl+/ ) -- this will ALWAYS comment whole line (if you have more than 1 line selected, then each line will be commented individually).
You should use "Block Comment" ( Ctrl+Shift+/ ) instead -- this will comment selection only.
Yay. That was it.
Since I'm so used to using apple+/ to comment out what I want, i changed the key mapping for it. I rarely use "a line comment". if I need more then a few words, I use the mouse to select a block to comment.
Thanks.
Andriy,
Thank you for your help!:)