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

Is there any way how I can

  • comment (add # at the beginning of the line) and
  • uncomment remove # from somewhere before the code

on the line(s) when coding in ruby?

share|improve this question
up vote 2 down vote accepted

To Toggle a block comment (e.g. in Ruby, #), press Ctrl+Q. Other comment related commands can be found under Edit > Comment/Uncomment.


share|improve this answer
Great, thank you. I tried to google it but didn't find anything. – Radek Jun 6 '12 at 6:09
@Radek Don't forget to mark the answer as accepted! – slhck Jun 6 '12 at 17:11
I wasn't able to so. I had to wait for 5 mins and left the office then. Thank you for reminding me. – Radek Jun 6 '12 at 23:17
Is the comment character based on the langueare ruby,php I am just editing? – Radek Jun 6 '12 at 23:18
@Radek Yes. Notepad++ uses the comment character defined for a given language. – iglvzx Jun 6 '12 at 23:22

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.