How to find repeated variables or functions with the same name within other files in the new apps script IDE

邮差的信 提交于 2021-01-21 11:25:12

问题


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:


  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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!