-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[folding] fold only code #208368
Comments
That'd be awesome, I can't even emphasize how many times I fold all k+0 and then have to go comment by comment opening them. Thanks! |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
If I understand right, this would mean the duplication of most of the existing fold commands (Fold, Fold Level X, ...). TBH, I'm not too keen to add more commands. |
IMO the ideal would be a "Toggle fold for comments" that would require only one command In F#, it's common to have over 800 lines of code in a single file, and comments are often used to organize the code (until the creation of a module is required). The ability to navigate (fold/unfold) quickly and easily is also of the utmost importance, so I don't want to spend half my time manually unfolding comments since I often use different levels of folding. eg: I find it quite annoying that in VSCode every time I "upfold" then "downfold" it automatically hides my "Helpers" comments if I put them at the beginning of a module, or that my multiline comments (often containing important "todos", or "impl/design ideas") are folded by default. Does anyone have similar problems? Thank you |
@aeschli Do you think a "Toggle fold for comments" would be reasonably feasible and appropriate? Thank you I also forgot to mention that when working in a team, it's very useful to make sure that "todo" and other tags are immediately visible, otherwise they may go unnoticed. |
Since we generally want to expose all paths as URIs (unless user-provided paths), we will only expose this as a URI. This means extensions are potentially missing out on important information which they may be able to handle (eg. SSHing in the terminal), but this is a small edge case and if the extension really wanted to handle it they should be able to parse the sequences themselves in the future via onDidWriteTerminalData. Part of #208368
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
Great thanks everyone! |
Does this issue occur when all extensions are disabled?: Yes
What I want: No comment folding at any level, only code
What I have at folding level 2 (it seems there's an autofold (?)):
What I want at folding level 2 (ie no comment folding):
Is there a way, extension? Thank you
The text was updated successfully, but these errors were encountered: