问题
The are many things I like about the new Apps Script IDE. But in the old IDE I used to be able to invoke the find dialog box to search for a function or variable name and the dialog box would return a list of files it was found in.
In the new IDE I can only search the active file on the window.
For example; In this case I referred to a function my JS file and the dialog box listed the files containing that function or variable name. This greatly reduces the time spent looking for the function when you have hundreds if not thousands of functions and files.
Is there a way to search all files in the new IDE? Thank you
回答1:
Right click on the variable/function name you want to search for references:
2a. Left click on Peek Definition (or press Alt + F12) if you want to see all the function declarations of the selected name:
2b. Left click on Peek References if you want to see all the declarations (functions and variables) of the selected name:
Please note:
The pop up window directs you to the reference scripts so you can edit them inside that window.
Click on the Esc button if you want to escape the pop up window.
References:
In this article you can find a rich documentation of the most functionalities of the new ide
:
- A Guide To The New Google Apps Script IDE
来源:https://stackoverflow.com/questions/65563835/how-to-find-repeated-variables-or-functions-with-the-same-name-within-other-file