We always need to comment multiple code lines during programming. In visual studio code, I want to know how to comment multiple lines?
Asked
Active
Viewed 8.0k times
1 Answers
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