How did you get it to work? Some sources seem to imply it's a default feature in vscode but there are reports that the rust-analyzer extension has broken it?
Found this post by web searching, so not a timely reply.
Personally, I use #region folding for VS Code - Visual Studio Marketplace for #region
code collapse. Default style is /* #region [NAME] */
and /* #endregion */
.
Please note that some vscode settings (such as editor.foldingStrategy
) may clash with vscode extensions.
I'd love to see something that could fold all doc comments with a toggle. I'd learn the heck out of that keyboard shortcut!
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.