Skip to content
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] go to region command #58658

Open
hansyulian opened this issue Sep 14, 2018 · 13 comments
Open

[folding] go to region command #58658

hansyulian opened this issue Sep 14, 2018 · 13 comments
Assignees
Labels
editor-folding Editor code folding issues feature-request Request for new features or functionality outline Source outline view issues
Milestone

Comments

@hansyulian
Copy link

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?

@vscodebot vscodebot bot added editor editor-folding Editor code folding issues labels Sep 14, 2018
@alexdima
Copy link
Member

@hansyulian What do you mean by region? We have a lot of outline, quick outline, breadcrumbs to help navigate within a file.

@alexdima alexdima added info-needed Issue requires more information from poster and removed editor editor-folding Editor code folding issues labels Sep 14, 2018
@hansyulian
Copy link
Author

the one enclosing a certain part of code like this:

//#region properties
....
//#endregion

//#region computed

//#endregion

@alexdima
Copy link
Member

I wonder if these regions should appear perhaps in the outline... What programming language are you using?

@alexdima alexdima assigned jrieken, aeschli and mjbvz and unassigned rebornix and alexdima Sep 14, 2018
@jrieken jrieken removed their assignment Sep 17, 2018
@aeschli
Copy link
Contributor

aeschli commented Sep 17, 2018

We have a command to close all regions (Fold all regions).
No sure how we would do that for a 'certain' region.

@hansyulian
Copy link
Author

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

@aeschli aeschli removed the info-needed Issue requires more information from poster label Sep 17, 2018
@aeschli aeschli added this to the Backlog milestone Sep 17, 2018
@aeschli aeschli added outline Source outline view issues editor-folding Editor code folding issues labels Sep 17, 2018
@aeschli aeschli changed the title "Go To Region" shortcut "Go To Region" navigator Sep 17, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 17, 2018

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

@mjbvz mjbvz added the feature-request Request for new features or functionality label Sep 18, 2018
@rholland
Copy link

I would also like to see regions in the outline view.

@mjbvz mjbvz removed their assignment Nov 29, 2018
@Cloov
Copy link

Cloov commented Apr 2, 2019

I would also like to see regions in the outline view.

@benyaminl
Copy link

I also want it to apear on VS Code. I really need that of thing. It's make the code easier to navigate!

@ghost
Copy link

ghost commented May 15, 2019

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! 🙏

@benyaminl
Copy link

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

@aeschli aeschli changed the title "Go To Region" navigator [folding] go to region command Oct 9, 2019
@adamerose
Copy link

I'd also really like to see this implemented. In the meantime has anyone found an Extension that does this?

@swift502
Copy link

swift502 commented Jul 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-folding Editor code folding issues feature-request Request for new features or functionality outline Source outline view issues
Projects
None yet
Development

No branches or pull requests