Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rubymine comment out rails code

in rubymine it is easy to code out html with code -> line comment, but how do you comment multiple lines in ruby.

%= "this is a test %>

to

#= "this is a test %>
like image 877
bonhoffer Avatar asked Dec 22 '22 15:12

bonhoffer


1 Answers

Select the lines you want to comment out, and do CMD+/ (forward slash) on a Mac. On a PC I'm assuming the same thing is CTRL+/

You can un-comment the same way, and you can also comment single lines out with the same keystroke. It doesn't really matter where your cursor is on the line. As long as a part of the line has been selected, the comment will include the whole line.

like image 110
D. Simpson Avatar answered Jan 07 '23 19:01

D. Simpson