Pannam T
Pannam T

Reputation: 479

How to fold multiple single line comments in visual studio code

As per the solution from previous posts, I tried to fold all blocked comments from the command palette but nothing happens. I have tried a lot of extensions/plugins but still, I can't fold them. Any solution to this? I have to close everything manually. However, in the IDE I can fold multiple single-line comments by hitting the down arrow on the left. Is there any shortcut or particular plugin/ extension for this ? Am I commenting in the wrong way?comments

Upvotes: 2

Views: 2069

Answers (2)

Rishabh Kumar Singh
Rishabh Kumar Singh

Reputation: 452

Yes. Press Ctrl+K then press Ctrl+/.

Upvotes: 0

Ashutosh Patole
Ashutosh Patole

Reputation: 980

You have used // which is a single line comment Use /*...your code ...*/ for block comments

Shortcut for block comment is Ctrl+Shift+A in VS Code

Upvotes: 0

Related Questions