Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Using the latest version of Netbeans and trying to use the toggle comment button to comment out only the highlighted text, but netbeans ends up commenting out the entire line of CSS code.

Is there any way to work around this? Because I have to type out /* */ manually in order to comment without affecting the entire line.

share|improve this question

migrated from stackoverflow.com Oct 25 '12 at 9:35

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer 1

there are two short cuts to comment out sections of text

ctrl + shift + c     comment out selected lines
ctrl + /             toggle on off comments section

The way to work around it is by creating a new line before and after the section of text you want to comment out.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.