7

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

KarlHuang
  • 111
  • 1
  • 1
  • 8

1 Answers1

37

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).

ROOT
  • 11,363
  • 5
  • 30
  • 45
Prashant Barve
  • 4,105
  • 2
  • 33
  • 42