---
title: "How to Write Google Apps Script Code Locally in VS Code and Deploy It With clasp"
author: "Dmitry Kostyuk"
date: 2021-11-09T21:36:55+00:00
modified: 2021-11-09T21:37:00+00:00
canonical_url: https://pulse.appsscript.info/p/2021/11/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp/
markdown_url: https://pulse.appsscript.info/p/2021/11/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp.md
categories:
  - "Intermediate"
  - "Solutions"
tags:
  - "@wildhogsm"
  - "dmitry-kostyuk"
  - "Medium"
featured_image: https://pulse.appsscript.info/files/2021/11/1SPzMUzlhVpslIuxp6dxDEQ.png
description: "Any serious GAS developer should, IMHO, at one point migrate to local development with clasp. It’s more convenient and more powerful thanks to the tools that come with VS Code and Node.js."
---

# How to Write Google Apps Script Code Locally in VS Code and Deploy It With clasp

![How to Write Google Apps Script Code Locally in VS Code and Deploy It With clasp](https://pulse.appsscript.info/files/2021/11/1SPzMUzlhVpslIuxp6dxDEQ.png)

> [https://dmitry-kostyuk.medium.com/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp-9a4273e2d018?sk=f3febc7fbd1339799e1e5570f4b2779e](https://dmitry-kostyuk.medium.com/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp-9a4273e2d018?sk=f3febc7fbd1339799e1e5570f4b2779e)Google Apps Script Power Up
> 
> 
> # Why Write GAS Code Locally?
> 
> 
> When it came out, the new Google Apps Script IDE was, of course, a big deal. It’s way better than the legacy one. It brought syntax highlighting, keyboard shortcuts, command palette and just a much better UI experience.
> In fact the reason it’s so good is that it’s built on top of VS Code [Monaco editor](https://github.com/microsoft/monaco-editor). But it’s definitely still far away from what a real VS Code installation can do. You can get all the functionality of the online IDE and much more more: autocomplete, custom themes, installation of modules, linting, snippets, etc.
> The bare minimum that you would need is :
> 
> A [VS Code](https://code.visualstudio.com/) installation (duh!)
> [Node.js](https://nodejs.org/en/download/) + NPM : a JavaScript runtime with a built-in module installer;
> Autocomplete;
> clasp: a CLI utility to sync your GAS code
> 
> Let’s get into it!

Source: *[How to Write Google Apps Script Code Locally in VS Code and Deploy It With clasp*](https://dmitry-kostyuk.medium.com/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp-9a4273e2d018)

---

*Published by [Dmitry Kostyuk](https://pulse.appsscript.info/p/author/dmitrykostyuk/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2021/11/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp/](https://pulse.appsscript.info/p/2021/11/how-to-write-google-apps-script-code-locally-in-vs-code-and-deploy-it-with-clasp/)*
