How to search for functions in vscode
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!