google-apps-scriptgoogle-apps-script-editor

What does the new "Execution hints" button do?


I've just noticed a new button in the toolbar of the Google Apps Script IDE. It looks like a lightbulb, and the alt text on it says "Execution hints". I can't find anything in Support, Release Notes, or the Blog about this button.

Does anybody know what it does? I can't seem to make the button active to try it out.

Location of new button


Solution

  • The button seems to only be enabled if you have something in your code which they have pre-defined hints for.

    For example: I finally saw the button enabled when I was working on one of my custom spreadsheet functions. When clicked, this popped up over my code:

    enter image description here

    I, too, was intrigued by this new button when it first appeared a few days ago, and I was surprised to see nothing about it in the official Google Apps Script Release Notes.

    Once I figured out what it does, I came here to see if anyone else had asked about it.

    @mwjeffcott Update: Another one of my projects actually had some helpul "execution hints." It told me about deprecated functions that I was using. I mean, it could have been more helpful by providing the sunset date and the recommended "alternative solution," but it's better than nothing I guess.

    enter image description here