6

I have a code with many comments, how can I hide these ones, but no delete, I need them after.

I need to hide all the comments in one click, not a simple collapse one

Gama11
  • 28,518
  • 9
  • 66
  • 91
Olek
  • 379
  • 1
  • 3
  • 6
  • Possible duplicate of [How do I collapse sections of code in Visual Studio Code for Windows?](https://stackoverflow.com/questions/30067767/how-do-i-collapse-sections-of-code-in-visual-studio-code-for-windows) – RamblinRose May 16 '19 at 17:26

2 Answers2

5

Can't find such feature as well. Read this issue from GitHub - https://github.com/Microsoft/vscode/issues/46505

Seems like that VSCode can't do it (from the box) and all people waiting for that feature.

IFier
  • 98
  • 2
  • 9
1

I was looking for a way to do that too as I put way too many comments making it hard to debug... and I came across this https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hide-comments it makes all the comments invisible, but it leaves special characters in place. There are also commands to toggle show/hide.

Anthony Kung
  • 607
  • 3
  • 7
  • 20