Block commenting in Gedit?

前端 未结 8 1281
一生所求
一生所求 2020-12-23 09:18

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

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

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-23 09:44

    Ruby has block commenting...

    =begin
        Insert comment here
    =end
    

    This will avoid the need to add # to each line... However, I don't think Gedit will convert highlighted code into commented lines by default.

提交回复
热议问题