Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Block commenting in Gedit?

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

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

like image 435
Jason Kim Avatar asked Oct 04 '11 14:10

Jason Kim


People also ask

How do you uncomment in text editor?

To uncomment the selection, simply select the entire block of code (including the block comment characters) and go to the Edit menu and click on Uncomment Selection. As you can see, the block comment characters have been removed.

How do I block comments in VHDL?

The complementary icon Uncomment Block removes the comment characters ("--" for VHDL and "//" for Verilog) from all lines in the selected text. Another way of commenting is by using Ctrl+K on your keyboard or Edit | Block | Comment from main menu.


1 Answers

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

like image 140
Soundar Rathinasamy Avatar answered Oct 08 '22 10:10

Soundar Rathinasamy