Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rluncasu/google-apps-script-power-pack

Repository files navigation

Google Apps Script for VS Code

Rocket charge your Google Apps Script (.gs) development with this all-in-one extension.

We provide full syntax highlighting, smart completion (IntelliSense), code navigation (Go to Definition, Find All References), and a comprehensive snippet library to make writing GAS scripts faster and easier than ever.

✨ Features

🎨 Beautiful Syntax Highlighting

  • proper highlighting for .gs files (treated as JavaScript).
  • Custom Tokenization: Instantly recognizes global Google Apps Script classes like SpreadsheetApp, DriveApp, GmailApp, and Logger.

🧠 Intelligent Autocomplete (IntelliSense)

  • Forget looking up documentation for every method!
  • Includes a command to automatically configure type definitions for your project.
  • Type SpreadsheetApp. and see getActiveSpreadsheet(), openById(), and more with full documentation tooltips.

⚑ Power Snippets

Dozens of built-in snippets for common triggers and services:

  • Triggers: onOpen, onEdit, doGet, doPost
  • Services: DriveApp, MailApp, UrlFetchApp, PropertiesService
  • UI: ui:alert, ui:prompt
  • Utilities: Date formatting, JDBC connections, and more.

🧭 Code Navigation

Navigate your GAS projects like a pro β€” works across all .gs files in your workspace.

Feature Shortcut (Mac / Windows) Description
Go to Definition Cmd+Click / Ctrl+Click or F12 Jump to where a function, class, or variable is defined
Find All References Shift+F12 See every usage of a symbol across your project
Document Symbols Cmd+Shift+O / Ctrl+Shift+O Browse all functions & variables in the current file (Outline & Breadcrumbs)
Workspace Symbols Cmd+T / Ctrl+T Search for any symbol across the entire workspace

πŸš€ Getting Started

  1. Include .gs files in your project.
  2. Run the Setup Command:
    • Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
    • Run: Google Apps Script: Enable IntelliSense
  3. Start coding with full autocomplete support!

πŸ“¦ Snippet Cheat Sheet

Trigger Snippet Prefix Description
Open Trigger onOpen Creates the onOpen(e) function
Spreadsheet ss:active SpreadsheetApp.getActiveSheet()
Drive drive:create Creates a new file in Drive
HTTP Request http:get UrlFetchApp.fetch(url)
Logging log Logger.log()

πŸ”§ Requirements

  • VS Code ^1.90.0

πŸ“ Notes

This extension leverages the @types/google-apps-script package for IntelliSense. The setup command creates a jsconfig.json in your workspace root to enable this configuration automatically.


Enjoying the extension? Please leave a review! ⭐️⭐️⭐️⭐️⭐️

About

VSCode extension for Google Apps Script syntax highlighting, snippets, and IntelliSense.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /