Click Raw and Tampermonkey will prompt installation.
Confirm and enable it.
-
Open any project in the Google Apps Script Editor:
https://script.google.com/ -
The toolbar will load automatically.
-
Use it to:
- 💾 Save code snippets
- 📂 Reuse saved blocks
- ⚙️ Configure shortcut keys
The modern Google Apps Script Editor is built on top of the Monaco Editor, the same open-source editor that powers Visual Studio Code:
🔗 https://github.com/microsoft/monaco-editor
Monaco provides:
- Syntax highlighting
- IntelliSense
- Smart autocomplete
- Code diagnostics
- Advanced text model handling
The GAS-Status-Code-Toolbar leverages this architecture to extend the editor interface.
The userscript:
- Detects when
script.google.comloads - Waits for Monaco to initialize in the DOM
- Injects custom HTML toolbar elements
- Hooks into keyboard events
- Interacts with the active editor instance to:
- Capture selected code
- Insert snippets at the cursor position
- Programmatically modify the text model
Because Monaco exposes its editor instance in the page context, the script can safely access the active model (editor.getModel()) and apply controlled edits.
- Browser loads the Google Apps Script Editor.
- Monaco Editor initializes.
- Tampermonkey executes GAS-Status-Code-Toolbar.
- The toolbar is injected into the interface.
- Keyboard events are captured.
- Text modifications are applied directly to Monaco’s model.
Important:
The script does not modify the Google Apps Script runtime. It operates strictly at the browser UI layer, extending Monaco’s behavior.
This makes the solution safe, non-invasive, and fully reversible (simply disable the script in Tampermonkey).
Example toolbar interface reference:

(Illustrative images for UI context.)
The project:
- 🚀 Boosts development productivity
- 📂 Introduces built-in snippet management
- ⌨️ Enables shortcut-driven workflow
- 🧩 Extends functionality without official API changes
- Cloud snippet synchronization
- Import/export settings
- GitHub Gist integration
- Advanced logging interface
- Compatibility with other Monaco-based editors
Contributions are welcome!
- Fork the repository
- Create a branch
- Submit a Pull Request
Released under the GPL-3.0 License.