apps-script-samples

Cursor Inspector

Cursor Inspector is a sample script for Google Docs that allows you to inspect the current state of the cursor or selection within a document. The information is presented in a sidebar and updates automatically every few seconds. The data presented corresponds with the Cursor and Selection classes of the API.

Cursor Inspector screenshot

Try it out

For your convience we have deployed the script into a Google Docs document that you can copy and use. Follow the instructions in the document to get started.