`#pragma region` code folding
Check for existing issues
- [X] Completed
Describe the feature
#pragma region allows you to enclose a block of code in C++ to fold them in the editor. It's useful for big files.
If applicable, add mockups / screenshots to help present your vision of the feature
I'd love to have something like
// region: Region name
// endregion: Region name
for Rust as well.
I join this request (regions in rust-analyzer), in conjunction with the correct recognition of custom snippets in rust-analyzer.
Perhaps recognize/follow regions for VSCode and others. e.g., //#region types ... //#endregion types for TypeScript in VSCode
recognizing a variety of (configurable?!) region block declarations would be great; providing a configurable a list of start/end pairs, and/or letting it be set on a per-language basis, would be one approach - allowing support for VSCode, JetBrains, pragma, and any other styles.
I would like to see this feature as well in any implementation :)
Regarding the original request for #pragma region folding, it could be supported by the C++ language server clangd, but it is not implemented yet.
Instead of relying on individual language servers, I think a better approach would be to implement a generalized solution for all languages (similar to VSCode).
Would love a VSCode style implementation
// #region Foo
// #endregion Foo
would be great!