DEV Community

Denis Valášek
Denis Valášek

Posted on • Originally published at blog.valasek.dev on

Actions on Google VS Code Extension

You know it, you got a new idea, so you hurry up to get that idea to life, but now you have to do all that boring (or interesting :)) stuff again. Create a new project, install node_modules, remember what was the basic project structure and then finally start writing the code. Which, some of the time, can be repetitive too.

Unfortunately, I can’t help you with most of the work I talked about, but I hope to help you with some of it :) I got tired of writing the same stuff over and over, so I have looked into the VS Code snippets. Since I wanted to ease my Actions on Google development, I looked if some snippets are available in VS Code Marketplace. To my surprise, there weren’t any! So I decided to create them myself and share with the community!

A faster way to start a new project

Table of current snippets is below and more are coming soon. If you already know what’s missing or what you want to be added, feel free to let me know or send apull request on Github :) Currently supporting JavaScript and TypeScript.

You can find it here or search for the Actions on Google snippets in VS Marketplace! Happy coding!

Snippet key Description
aog Creates required AoG scaffold for Firebase Cloud Functions
intent Creates intent handler
intent1 Creates intent handler with 1 string parameter
card Creates a basic card with an image
hpermission Creates helper for getting name, precise location or coarse location
htime Creates helper for getting time
hplace Creates helper for getting place
hconfirmation Creates helper for getting confirmation
storage Shortcut for getting conv.user.storage object
view raw snippets.csv hosted with ❤ by GitHub

New intent

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs