Jason Torpy
Jason Torpy

Reputation: 144

Navigate around a Google Apps Script project

I love the new Google Apps Script interface, but navigating around the script is super hard.

What methods do people use?

  1. to jump to a function in a script file.

  2. to jump to functions in other script files.

  3. (bonus) to catalog what user functions are used in a function.

Upvotes: 2

Views: 578

Answers (2)

Wim den Herder
Wim den Herder

Reputation: 1305

Solution 1 Press cmd and click on the function name. It opens a pop-up with the original function.

PS: Does somebody know how to open up the pop-up and go to that file?

Solution 2 Install AppsScript Color and do a search and click the magnifying glass to search through all files.

enter image description here enter image description here

Upvotes: 1

TheAddonDepot
TheAddonDepot

Reputation: 8974

You can try navigating to a definition, reference or symbol by using the Go to Definition, Go to Reference or Go to Symbol commands.

You can execute those commands by using the short-cuts Ctrl+F12, Shift+F12 or Ctrl+Shift+O respectively, or by right-clicking text in your code to bring up the context menu. Doesn't seem to work with closures though.

The new editor has a bunch of new options and features. Easiest way to find and explore them is by opening the command palette by pressing F1.

Upvotes: 2

Related Questions