You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request : Navigation Bar like Visual Studio or Eclipse #9418
Would be possible to add a navigation bar like visual studio or eclipse?
Feature Navigation Bar -
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)
Reacted by Mikael Wallin, zagreusinoz, Marco Buono, Piotr Makal, Adam Voss, mihailik, Yukai Huang, Roberto Malatesta, Carlo Cardella, Johannes Rieken and 24 more
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!
Updated PR #31162 with flashing symbol position, adding screenshot here too. Does it look good? Any feedback?
Reacted by Quy Le, Mike Smullin, J. J. Cole, Yukai Huang, Alexander, Roger Cas, Bilal Syed Hussain, Sebastian Herrmann, Alberto Silva, Mauricio Junior and 3 more
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.
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.
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...
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
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!
Reacted by Steven, Bernhard Döbler, Steve Lombardi, Matthew Gingerich, Yurii Holskyi and J.
Reacted by Steve Lombardi, Gabriel Anca, Soichiro Miki, Matthew Gingerich and Yurii Holskyi
Reacted by netpedro.com, Gabriel Anca, Tomáš Szabo, Matthew Gingerich and Yurii Holskyi
Activity
weinand commentedon Jul 17, 2016
Gabriel Parelli Francischini (@gfrancischini) your link to some image does not work.
adamvoss commentedon Jun 13, 2017
Ctrl+Shift+Ois a bit closer to the functionality your are looking for, but does not have the UI fixture you've requested.mihailik commentedon Jul 14, 2017
I have looked at the available services and API --- it's definitely doable.
Key points are
ICodeEditorServiceandDocumentSymbolProviderRegistry.DocumentSymbolProviderRegistryenables querying the document for symbols, which includes things like namespaces or functions, spanning large parts of text and nesting into each other.ICodeEditorServicegives 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!
mihailik commentedon Jul 20, 2017
Opened PR #31162 with a prototype implementation, using services described above.
Advice on finalising the styles, and coding changes is highly appreciated!
mihailik commentedon Jul 25, 2017
Updated PR #31162 with flashing symbol position, adding screenshot here too. Does it look good? Any feedback?
vscodebot commentedon Nov 20, 2017
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!
jrieken commentedon Nov 23, 2017
Isidor Nikolic (@isidorn) Why did you close this? Since when do you take responsibilities in this area?
27 remaining items
add setting to show/hide or show last part of file and symbol path, #…
initially hide filter box and reveal it when starting to type, #9418
jrieken commentedon Jul 17, 2018
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
mihailik commentedon Jul 17, 2018
Dark theme - the dropdown is really blending with editor. Consider a very faint border around it:
bardware commentedon Jul 17, 2018
How does the user know he can type to filter? Is there a tooltip or an icon or the like? Any hint?
JacksonKearl commentedon Jul 17, 2018
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.tsto**/media/A.css, when there may be many files namedA.cssthroughout the workspace and the file open quick pick wouldn't be able to distinguish between them.Edit: Missed the comment above. Looks good!
jrieken commentedon Jul 17, 2018
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...
JacksonKearl commentedon Jul 17, 2018
It would be nice if the crumbs could be optionally hidden by default and only appear on the
Ctrl+Shift+.trigger, then disappear again onEscor a selectionjrieken commentedon Jul 26, 2018
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!