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?

0
4 comments

I think it is a bug. You should file a ticket there: http://youtrack.jetbrains.net/issues/WI

0

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.

0

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.

0

Andriy,

Thank you for your help!:)

0

Please sign in to leave a comment.