I managed to get the custom function autocomplete working yesterday. It seems to only work with container-bound scripts, so any JSDoc info inside a script being used as a library will not come across. To verify it works, I did the following:
- Create new Google Sheet
- Open Script Editor
Enter the following in the script:
/** * Returns amount multiplied by itself. * * @param {Number} amount The amount to be multiplied by itself. * @return {Number} The amount multiplied by itself. * @customfunction */ function test(amount) { return amount*amount; }
- Then, when entering =test into a cell in the spreadsheet, the information above the function appears in the autocomplete hint, like any other built-in spreadsheet function.