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

Add function preview summary window to editor #15222

Closed
scmaverick opened this issue Nov 9, 2016 · 7 comments
Closed

Add function preview summary window to editor #15222

scmaverick opened this issue Nov 9, 2016 · 7 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@scmaverick
Copy link

scmaverick commented Nov 9, 2016

  • VSCode Version: 1.7.1
  • OS Version: Windows 7 Ent

In netbeans, there is an internal panel that will show you all the classes and functions that are found in the file currently with the focus, if you click on the function or the class within the panel, it will take you right to the defining line in the file.
I find this so extremely useful for when you are searching through a file for any given function or just overlooking the file contents. This is an easy way to look at all the classes and their members that have been defined in the file. That for programming languages,
For HTML, CSS for example it will show the file tree and the classes. This a pretty smart file preview.
It'd be nice to have this feature in VSC as well.

@aeschli
Copy link
Contributor

aeschli commented Nov 9, 2016

Can you add a screenshot of the panel that you propose?
To navigate to symbols in the current open editor we have Ctrl + Shift + O. To navigate to symbols in the workspace Ctrl + T, to file Ctrl + P

@aeschli aeschli added the info-needed Issue requires more information from poster label Nov 9, 2016
@wilferraz
Copy link

A similar feature is provided by the ctags + sidekick plugin. This particularly useful because it's static and you can look at the big picture in the same time that you are digging in the source code.
siekick

@scmaverick
Copy link
Author

Hi, sorry for the late response but I was pulled away.
Here is a screenshot of the Navigator panel in Netbeans for a PHP file where it is listing all the functions contained in it:
image

This is what it looks like for CSS and HTML:

image

And this is for another PHP file that only contains a class, where SAF\Tables is the namespace, Entry_Relations is the name of the class, \Common\MyTable is the namespace:class that its extending, and the final 3 marked with triangles are constants:

image

Wilferraz, I couldn't find the sidekick plugin for VS Code, or were you talking about something that exists for another IDE?
Thanks

@wilferraz
Copy link

I was talking about a JEdit plugin. This is a simple editor I have used for years when developing code for industrial devices. I think that VS code is light years better than JEdit but this is a feature that I liked very much. And yes, it is similar to the netbeans navigator that you mentioned.

Will

Sent from my iPhone

On Nov 17, 2016, at 11:41 PM, scmaverick <notifications@github.commailto:notifications@github.com> wrote:

Hi, sorry for the late response but I was pulled away.
Here is a screenshot of the Navigator panel in Netbeans for a PHP file where it is listing all the functions contained in it:
[image]https://cloud.githubusercontent.com/assets/9893119/20418727/2adc4bca-ad16-11e6-8169-e373f23e1fa4.png

This is what it looks like for CSS and HTML:

[image]https://cloud.githubusercontent.com/assets/9893119/20418756/69a2c38e-ad16-11e6-9852-2f51991093e8.png

And this is for another PHP file that only contains a class, where SAF\Tables is the namespace, Entry_Relations is the name of the class, \Common\MyTable is the namespace:class that its extending, and the final 3 marked with triangles are constants:

[image]https://cloud.githubusercontent.com/assets/9893119/20418807/c747dc40-ad16-11e6-91c2-b95a660a68de.png

Wilferraz, I couldn't find the sidekick plugin for VS Code, or were you talking about something that exists for another IDE?
Thanks

You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/15222#issuecomment-261447339, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVxAXM0ii0SmMDso45ziZRLlf1LNI2zgks5q_Sx0gaJpZM4KtEM3.

@ramya-rao-a ramya-rao-a added workbench and removed info-needed Issue requires more information from poster labels Nov 19, 2016
@ramya-rao-a
Copy link
Contributor

@wilferraz @scmaverick Please go through the discussion in #15485 for current thoughts on hierarchical file outline view.

#15533 is tracking the api needed to implement this.

Will close the current issue in favor of #15533 and #15485
Please add your thoughts/upvotes in these tracking issues

@ramya-rao-a ramya-rao-a added *duplicate Issue identified as a duplicate of another issue(s) and removed workbench labels Nov 19, 2016
@DanTup
Copy link
Contributor

DanTup commented Nov 19, 2016

FWIW, #15533 is about type hierarchy (subclasses, superclasses etc. which may be in other files) and not about visualising the current file. #5605 is possibly what's being asked for here?

@ramya-rao-a
Copy link
Contributor

@DanTup Thanks! My mistake. You are right. #5605 is what is being asked here.
@wilferraz @scmaverick Please add your up votes to #5605

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
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

6 participants