Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.53 KB

settings.md

File metadata and controls

56 lines (39 loc) · 1.53 KB

Settings

These 1-time-setup settings can enhance your Google Apps Script developer experience. (1 min)

appsscript.json and .clasp.json Autocompletion

autocompletion

You can get autocompletion for appsscript.json and .clasp.json in VSCode by following these steps:

  1. Open VSCode settings.

    Code > Preferences > Settings

  2. Add these "json.schemas" in the User Settings file:

    {
        "json.schemas": [{
            "fileMatch": [
                "appsscript.json"
            ],
            "url": "http://json.schemastore.org/appsscript"
        }, {
            "fileMatch": [
                ".clasp.json"
            ],
            "url": "http://json.schemastore.org/clasp"
        }]
    }
  3. After adding this, upon editing these files:

    • appsscript.json – Apps Script manifest
    • .clasp.json – Clasp Project settings

Other IDEs

.gs Syntax highlighting

You can also add gs color coding if you prefer not to use js or ts via this property in the same settings file:

"files.associations": {
    "*.gs": "javascript"
},

Missing Schema?

File a Pull Request in this repo: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/appsscript.json