Skip to content

Feature Request : Navigation Bar like Visual Studio or Eclipse #9418

Closed

Description

Would be possible to add a navigation bar like visual studio or eclipse?

Feature Navigation Bar -
8284 image_thumb_1 1

This bar should show function/methods of the current file.

I know that vscode support the ctrl + p + # to find symbols but this approach is not the best when you want to have a look over the entire class (or perhaps you dont know the method name)

Activity

  1. added
    feature-request
    on Jul 17, 2016
  2. weinand commented on Jul 17, 2016

    @weinand
    Contributor

    Gabriel Parelli Francischini (@gfrancischini) your link to some image does not work.

  3. adamvoss commented on Jun 13, 2017

    @adamvoss

    Ctrl+Shift+O is a bit closer to the functionality your are looking for, but does not have the UI fixture you've requested.

  4. mihailik commented on Jul 14, 2017

    @mihailik
    Contributor

    I have looked at the available services and API --- it's definitely doable.

    Key points are ICodeEditorService and DocumentSymbolProviderRegistry.

    DocumentSymbolProviderRegistry enables querying the document for symbols, which includes things like namespaces or functions, spanning large parts of text and nesting into each other.

    ICodeEditorService gives access to the editor, and events such as editing and cursor movement, so navbar would know when to be updated. Additionally editor allows placing decorations over chunks of text. That's useful because you want to highlight 'breadcrumb' points in actual text, say when user puts mouse over navbar or parts of it.

    The only remaining question is placing the navbar on screen. I'm not quite sure which part of the code has the layout of editor tabs.

    One way or another I'm preparing to have a go at this feature. Any preliminary advice and suggestions are welcome!

  5. mihailik commented on Jul 20, 2017

    @mihailik
    Contributor

    Opened PR #31162 with a prototype implementation, using services described above.

    Advice on finalising the styles, and coding changes is highly appreciated!

  6. mihailik commented on Jul 25, 2017

    @mihailik
    Contributor

    Updated PR #31162 with flashing symbol position, adding screenshot here too. Does it look good? Any feedback?

    screen shot 2017-07-25 at 08 17 47

  7. added
    ux
    on Nov 9, 2017
  8. added
    *out-of-scope
    on Nov 20, 2017
  9. vscodebot commented on Nov 20, 2017

    @vscodebot

    This feature request will not be considered in the next 6-12 months roadmap and has been closed to keep the number of issues we have to maintain manageable. See also our issue reporting guidelines.

    Thanks for your understanding and happy coding!

  10. removed
    *out-of-scope
    on Nov 23, 2017
  11. jrieken commented on Nov 23, 2017

    @jrieken
    Contributor

    Isidor Nikolic (@isidorn) Why did you close this? Since when do you take responsibilities in this area?

  12. 27 remaining items

  13. jrieken commented on Jul 17, 2018

    @jrieken
    Contributor

    Another suggestion: move [Find] field down below, or remove completely. It makes interaction less smooth

    I have pushed the a change for next insiders (18 July) that hides the filter box initially and reveals it when starting to type. Like so

    jul-17-2018 11-03-28

  14. mihailik commented on Jul 17, 2018

    @mihailik
    Contributor

    Dark theme - the dropdown is really blending with editor. Consider a very faint border around it:

    breadcrumbs-no-border

    breadcrumbs-with-border

  15. bardware commented on Jul 17, 2018

    @bardware

    hides the filter box initially

    How does the user know he can type to filter? Is there a tooltip or an icon or the like? Any hint?

  16. JacksonKearl commented on Jul 17, 2018

    @JacksonKearl
    Contributor

    Is there an action which I can bind to open up the topmost dowpdown? I'd like to use this to close #53279 by allowing a quick way to navigate from say **/A.ts to **/media/A.css, when there may be many files named A.css throughout the workspace and the file open quick pick wouldn't be able to distinguish between them.

    Edit: Missed the comment above. Looks good!

  17. jrieken commented on Jul 17, 2018

    @jrieken
    Contributor

    How does the user know he can type to filter? Is there a tooltip or an icon or the like? Any hint?

    Fair question. I guess it depends on your expectations, may users are used to typing in a tree doing the right thing and miss it from other trees. Those might intuitively start to type, others might need some education...

  18. JacksonKearl commented on Jul 17, 2018

    @JacksonKearl
    Contributor

    It would be nice if the crumbs could be optionally hidden by default and only appear on the Ctrl+Shift+. trigger, then disappear again on Esc or a selection

  19. added and removed
    outline
    on Jul 26, 2018
  20. jrieken commented on Jul 26, 2018

    @jrieken
    Contributor

    Closing this issue now because the biggest chunk of work is done and because we will ship this with the July release. Obviously, we aren't done but in the name of manageability we have added the outline-label which tracks all remaining bugs and feature requests. #HappyCoding!

  21. added
    verification-needed
    on Aug 1, 2018
  22. added
    verified
    on Aug 1, 2018
  23. locked and limited conversation to collaborators on Sep 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

breadcrumbsfeature-requestuxverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions