Vscode: [folding] go to region command

Created on 14 Sep 2018  路  13Comments  路  Source: microsoft/vscode

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?

editor-folding feature-request outline

Most helpful comment

From #51364, I'm in favor of adding built-in support for displaying regions in the outline view

All 13 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omidgolparvar picture omidgolparvar  路  3Comments

sijad picture sijad  路  3Comments

shanalikhan picture shanalikhan  路  3Comments

vsccarl picture vsccarl  路  3Comments

sirius1024 picture sirius1024  路  3Comments