Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to search for functions in vscode

Shulou Source: shulou.com Published: 2022-06-02 15:44:48 12月03日 Update

Editor to share with you how to search for functions in vscode, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

How to search for functions in vscode? How do I find the definition of a function across files in the vsCode editor?

Question:

For example:

Use in a.js

Var res = window.unique (arr)

Unique is defined in an unknown js file

Window.unique = fuction (arr) {return [... new Set (arr)];}

Now how to quickly locate the defined location of unique in a.js?

Answer:

Press and hold Ctrl = > mouse to point to the defined function name = > Click the mouse, the result will jump to the defined function file and the cursor will automatically point to the current function location.

The above is all the contents of the article "how to search functions in vscode". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Function search file article location content point mouse not much cursor most more knowledge results editor industry information channel question channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Xiaomi MySQL vpn Shulou Information