8

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

1
  • 6
    Select then Ctrl+K+C Commented Jul 22, 2017 at 2:37

1 Answer 1

40

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.