Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you show what function you are in in Visual Studio Code?

How do I show what function I'm in? I'd like to be able to see where ever I place my cursor, to see what function I'm in preferably in the footer tray bar.

like image 557
1.21 gigawatts Avatar asked Feb 20 '19 11:02

1.21 gigawatts


People also ask

How do you show the use of functions in Visual Studio code?

You can CTRL+CLICK (Windows) or CMD+CLICK (Mac) on the function name and look on the right column. Show activity on this post.

How do I view functions in Visual Studio?

You can use the shortcut Ctrl + F2 (move focus to the project drop down) and press Tab twice (move focus to the third drop down) to focus it, down arrow will expand the list.


2 Answers

There appears to be a functional extension for this mentioned in the GitHub issue:

  • Show the current function/method name in the toolbar:
    https://github.com/Microsoft/vscode/issues/32869

Here is the extension:

  • https://marketplace.visualstudio.com/items?itemName=amos402.scope-bar
like image 140
Ben Avatar answered Nov 15 '22 10:11

Ben


As mentioned in the comments, this can be achieved without any extension by opening command palette and selecting "View: Toggle Breadcrumbs"

like image 45
Sanyam Jain Avatar answered Nov 15 '22 09:11

Sanyam Jain