[folding] go to region command
So if we have the ctrl + g to go to line, how about we have a shortcut that will allow us to go to certain region in our code?
@hansyulian What do you mean by region? We have a lot of outline, quick outline, breadcrumbs to help navigate within a file.
the one enclosing a certain part of code like this:
//#region properties
....
//#endregion
//#region computed
//#endregion
I wonder if these regions should appear perhaps in the outline... What programming language are you using?
We have a command to close all regions (Fold all regions).
No sure how we would do that for a 'certain' region.
yea well aware of the fold all regions, but wonder would it be feasible if we have a better way to navigate between region? for example a region navigator floating window, or shortcut to go to a certain region
From #51364, I'm in favor of adding built-in support for displaying regions in the outline view
I would also like to see regions in the outline view.
I would also like to see regions in the outline view.
I also want it to apear on VS Code. I really need that of thing. It's make the code easier to navigate!
I want to be able to sort and go to the symbols in the symbol navigator by region (ctrl P + type @), perhaps by typing "@>" or something like that, and have this support nested regions! 🙏
I want to be able to sort and go to the symbols in the symbol navigator by region (ctrl P + type @), perhaps by typing "@>" or something like that, and have this support nested regions! 🙏
We need more waiting seems like that
I'd also really like to see this implemented. In the meantime has anyone found an Extension that does this?
@adamerose There's this from 3 months ago: https://github.com/berabue/vscode-region-viewer It's allegedly only for C# regions, but seems to work for JS as well.
Edit: Just made a pull request for extended language support. Nested regions should also be easy to implement in future in this extension.
Hey everyone, I wanted these features too (a "Go to Region..." command, regions in the Outline, etc) so I built an extension that provides them plus a few others:
It wasn't possible to merge regions directly into the builtin Outline, so this adds a separate "Full Outline" tree view instead.