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

Feature Request: File Outline View for TypeScript #10788

Closed
MartinHaeusler opened this issue Aug 22, 2016 · 6 comments
Closed

Feature Request: File Outline View for TypeScript #10788

MartinHaeusler opened this issue Aug 22, 2016 · 6 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@MartinHaeusler
Copy link

MartinHaeusler commented Aug 22, 2016

It would be very useful to have a structural outline of the currently opened TypeScript file in VScode.

For an example of what I mean, check out this screenshot of an outline from a Java file in Eclipse:

outline

It displays the names of all types on top-level, and folded within them are the names of all fields and methods, including their names as well as parameter and return types. Clicking on a member in the outline jumps to the declaration. The icons indicate if the method is public (green) or protected (yellow).

As somebody who used Eclipse extensively in the past, I find it very difficult to program without such a view.

@sandy081 sandy081 added the feature-request Request for new features or functionality label Aug 23, 2016
@sandy081
Copy link
Member

sandy081 commented Aug 23, 2016

@MartinHaeusler There is a quick outline available when you type ctrl+shift+o which is a keyboard shortcut for the command Go to Symbol...

Guess this works for you. Otherwise let us know what you are looking for in addition.

@sandy081 sandy081 added info-needed Issue requires more information from poster and removed feature-request Request for new features or functionality labels Aug 23, 2016
@MartinHaeusler
Copy link
Author

MartinHaeusler commented Aug 23, 2016

@sandy081 Thanks for the suggestion, that's already a good start. I would prefer a "permanent" view though, something that visually sticks around all the time, like a sidebar, and is always in sync with the current file in the editor.

In the ctrl+shift+o menu, there's also no folding (e.g. members of a class are shown as children of the class in my screenshot above) and the types of the members (e.g. field types, method return types...) are unfortunately not displayed either...

As I said, this menu is a good start for me, but not quite what I would like to have.

@MartinHaeusler
Copy link
Author

MartinHaeusler commented Aug 23, 2016

By the way, the full-blown Visual Studio doesn't have that feature either. It needs third party plugins to achieve that, for example ReSharper for C#:

https://www.jetbrains.com/help/resharper/2016.2/Reference__Windows__File_Structure_Window.html

@MartinHaeusler
Copy link
Author

One more detail: the eclipse outline allows to switch the display between alphabetic member sorting and "as occurs in file" sorting with a single UI button press - a very handy feature.

@sandy081
Copy link
Member

@MartinHaeusler That's a good input. We already have a feature request for having a separate view for outline - #5605.

I would make this a dup of #5605. Please subscribe to that item and provide feedback there.

Thanks.

@sandy081 sandy081 added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Aug 23, 2016
@MartinHaeusler
Copy link
Author

Alright, thanks, I'll do that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants