Reputation: 479
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?
Upvotes: 2
Views: 2069
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