Google Apps Script Prettier Formatter Chrome Extention with AI Completion
GAS Prettier + AI Completion Extension
GAS Prettier integrates the popular Prettier code formatter directly into the Google Apps Script editor, allowing you to easily format both your HTML and Google Apps Script (GAS) files with a single click.
Some key features of GAS Prettier:
- Registers Prettier as the default formatter for the GAS editor.
- Supports formatting of both HTML and GAS files.
- Provides a warning message if there are any errors during the formatting process.
- Ai completion (working good on small google script file)
- Open source, so the community can contribute and help improve it.
How to Format Document?
Just use current Format Command (Ctrl + Shift + F) or Click Right Click it will show format button and just click format button.
This extension aims to streamline the development workflow for GAS developers by ensuring consistent code formatting across your project. No more manual formatting or fighting with different editor settings - just hit the format button and let Prettier do the work.
The GAS Prettier extension is available for free on the Chrome Web Store. I encourage you to check it out and let me know what you think! If you have any feedback or would like to contribute, the project is open source on GitHub.
GitHub Link:
https://github.com/saffiullahfahim/gas-prettier
Read more
Some key features of GAS Prettier:
- Registers Prettier as the default formatter for the GAS editor.
- Supports formatting of both HTML and GAS files.
- Provides a warning message if there are any errors during the formatting process.
- Ai completion (working good on small google script file)
- Open source, so the community can contribute and help improve it.
How to Format Document?
Just use current Format Command (Ctrl + Shift + F) or Click Right Click it will show format button and just click format button.
This extension aims to streamline the development workflow for GAS developers by ensuring consistent code formatting across your project. No more manual formatting or fighting with different editor settings - just hit the format button and let Prettier do the work.
The GAS Prettier extension is available for free on the Chrome Web Store. I encourage you to check it out and let me know what you think! If you have any feedback or would like to contribute, the project is open source on GitHub.
GitHub Link:
https://github.com/saffiullahfahim/gas-prettier
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "GAS Prettier + AI Completion", "description": "Google Apps Script Prettier Formatter Chrome Extention with AI Completion", "version": "1.2.2", "manifest_version": 3, "host_permissions": [ "https://script.google.com/*", "https://labs.perplexity.ai/" ], "icons": { "16": "img/icon16.png", "32": "img/icon32.png", "48": "img/icon48.png", "128": "img/icon128.png" }, "content_scripts": [ { "matches": ["https://script.google.com/*"], "js": [ "src/lib/prettier/standalone.js", "src/lib/prettier/parser-babel.js", "src/lib/prettier/parser-html.js", "src/loadScript.js" ], "css": ["src/style.css"], "world": "MAIN" }, { "matches": ["https://labs.perplexity.ai/"], "js": ["src/lib/socket.io/index.min.js", "src/pplxLoad.js"], "world": "MAIN", "all_frames": true } ]}
Read more