Is there a way to quickly navigate through large files with multiple functions? Something like class view in VS ?
3 Answers
Yes, there is the workbench.action.gotoSymbol
command also known as outlining. Its default shortcut is CTRL+Shift+O.
If you have an extension installed which supports this command for the current file type then a list of methods, classes and maybe other symbols for the current file will drop down which allows you to jump to their definitions.
-
3
-
I hope this is not against the rules, but I found this extension really useful. I think it fits what the OP needs. marketplace.visualstudio.com/… Feb 20, 2018 at 5:46
-
1@finnTheHumin this extension is deprecated : ⚠️ DEPRECATED. Please use the Outline view that comes with Visual Studio Code. Sep 2, 2019 at 11:40
There is a built-in Outline View in Vscode (as other answer said)
There is also [outline-map] https://marketplace.visualstudio.com/items?itemName=Gerrnperl.outline-map
it collapses the object/hierarchy automatically, & expands as you scroll to it.
(recommended, more usable than the built-in one)
(or just find other ones in Vscode Extension Marketplace)
gotoSymbol
data as a tree. This should be a tab in the Explorer panel.