These 1-time-setup settings can enhance your Google Apps Script developer experience. (1 min)
You can get autocompletion for appsscript.json
and .clasp.json
in VSCode by following these steps:
-
Open VSCode settings.
Code > Preferences > Settings
-
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" }] }
-
After adding this, upon editing these files:
appsscript.json
– Apps Script manifest.clasp.json
– Clasp Project settings
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"
},
File a Pull Request in this repo: https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/appsscript.json