Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode - Is it possible to always show the current function name somewhere at the top?

It would be very useful for editing JavaScript or TypeScript to always see the current function name at the top (like Xcode does for example). Sometimes when editing a long function (or having larger parts of the screen obscured with the console), it would be very useful to be able to verify that I'm actually in the correct function / to know in which function I am at the moment.

Is that possible?

like image 783
keyboard Avatar asked Jun 03 '17 19:06

keyboard


People also ask

How do you make a VS Code always on top?

Once you've opened Visual Studio Code, just press alt + space and the system menu will appear, then you just have to select the Always on top option.

How do you get to the top of a function in Visual Studio?

I found one trick in visual studio: Place the cursor on the empty to get the context (name of the function), copy the name of the function, then click the drop down arrow where all functions will be listed, paste the function name, enter. Then you are at the beginning of that function!

How do I find out where a function is called in VS Code?

To do this You can press Ctrl K , then Ctrl S and click on 'keybinding.


1 Answers

This was added with VS Code 1.26. It is called breadcrumbs

Breadcrumbs are enabled by default for languages with advanced support. This includes JS/TS, html, and css out of the box. Extensions can add support for more languages

like image 148
Matt Bierner Avatar answered Oct 06 '22 23:10

Matt Bierner