Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I comment multiple lines in visual studio code? [duplicate]

We always need to comment multiple code lines during programming. In visual studio code, I want to know how to comment multiple lines?

like image 713
KarlHuang Avatar asked Jul 22 '17 02:07

KarlHuang


Video Answer


1 Answers

In windows you need to press ctrl + / in mac you can do + / to make multiple comment

// public function index()
// {
//     $badgeIcon = BadgeIcon::all();
//     return $this->showAll($badgeIcon);
// }

Then if you want to un-comment then select the lines again and then press ctrl + /(in windows) again + /(in mac).

like image 51
Prashant Barve Avatar answered Sep 24 '22 01:09

Prashant Barve