Open rchiodo opened 1 year ago
Thought this might be a good thing to do in the near future.
Good to see that this nuisance is getting tackled. Here is a similar request from me in PTVS - it would be good if the solution were applicable in VS, too.
Unfortunately, I believe PTVS would have to be done separately. The same commands don't apply to Visual Studio.
Historically related: microsoft/vscode-python#20330
Related on Stack Overflow: The "Fold All Block Comments" command doesn't work on Python docstrings in files with certain arrangements of import, where it was also discovered that interestingly, the Fold All Block Comments
command does actually affect docstrings, but only under certain conditions which are not precisely known by me or the asker of that question. Not sure if that's intended or not.
I made a vscode extension to tackle this exact problem, as it was bugging me so much: https://marketplace.visualstudio.com/items?itemName=DanielSanchez.docstring-fold-and-unfold
Discussed in https://github.com/microsoft/pylance-release/discussions/3933