Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Oct 25 '12 at 9:35

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

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

Your Answer


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