Block commenting in Gedit?

Jason Kim picture Jason Kim · Oct 4, 2011 · Viewed 44.3k times · Source

Is there a way to comment out a chunk of highlighted code?

I am programming in ruby, and I hate putting # on lines individually.

Answer

Soundar Rathinasamy picture Soundar Rathinasamy · Oct 4, 2011

1.Install gedit plugins

 sudo apt-get install gedit-plugins

2.Go to Edit->Preference->Plugins-> and enable Code Comment

3.Ctl+m to comment block of codes

4.Ctl+Shift+m to uncomment block of codes