我如何获得建议?
How do I get a suggestions?
是否可以在为用户创建的函数输入 google 脚本时弹出建议?类似于内置函数:SpreadsheetApp。 -->getActiveSheet() 但要让我的 functionName() 查看 return 值的参数和类型?
是的。
如果您指的是 Google 脚本环境中的自定义函数,那么是的,您只需要用您的函数创建一个库。这是 link with instructions to create your own library. From the Libraries documentation:
You can use your included library just as you would use a default service. For instance, if you have chosen Test as an identifier for your library, just type Test immediately followed by a period to see autocomplete information listing the methods of the library.
顺便说一句,查看自动完成的快捷方式是Ctrl+Space。
如果您指的是 Google 表格中的自定义函数,那么可以。您只需按照以下指南添加评论即可。来自自动完成 documentation:
Google Sheets supports autocomplete for custom functions much like for built-in functions. As you type a function name in a cell, you will see a list of built-in and custom functions that matches what you enter.
Custom functions will appear in this list if their script includes a JsDoc @customfunction tag, as in the DOUBLE() example below.
是否可以在为用户创建的函数输入 google 脚本时弹出建议?类似于内置函数:SpreadsheetApp。 -->getActiveSheet() 但要让我的 functionName() 查看 return 值的参数和类型?
是的。
如果您指的是 Google 脚本环境中的自定义函数,那么是的,您只需要用您的函数创建一个库。这是 link with instructions to create your own library. From the Libraries documentation:
You can use your included library just as you would use a default service. For instance, if you have chosen Test as an identifier for your library, just type Test immediately followed by a period to see autocomplete information listing the methods of the library.
顺便说一句,查看自动完成的快捷方式是Ctrl+Space。
如果您指的是 Google 表格中的自定义函数,那么可以。您只需按照以下指南添加评论即可。来自自动完成 documentation:
Google Sheets supports autocomplete for custom functions much like for built-in functions. As you type a function name in a cell, you will see a list of built-in and custom functions that matches what you enter.
Custom functions will appear in this list if their script includes a JsDoc @customfunction tag, as in the DOUBLE() example below.