Z
Z
zhdoon2019-01-03 11:46:57
Visual Studio Code
zhdoon, 2019-01-03 11:46:57

How to search for code in Visual Studio Code where a function is defined?

Is there a plugin that allows you to find the file that defines the function/method/class used in the code?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2019-01-03
@zhdoon

Select the name of the function/method and press ALT + F12 or use the context menu.

spoiler
5c2ddcb52f6f1536950342.jpeg
spoiler
5d95d9a37cb65562810582.jpeg

A
Alex, 2019-01-03
@Kozack

So why not use search? Open the search for all files, enter function my_function_nameand search.

A
ApeCoder, 2019-01-04
@ApeCoder

If there are many ways, depending on what you have, from f12 with the cursor on the function name to ctrl + t and set the function name.
https://code.visualstudio.com/docs/editor/editinge...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question