DEV Community

Cover image for Introducing GAS Prettier - A Chrome Extension to Beautify Your Google Apps Script Code
Saffiullah Fahim
Saffiullah Fahim

Posted on • Updated on

Introducing GAS Prettier - A Chrome Extension to Beautify Your Google Apps Script Code

Hey fellow Google Apps Script developers! I'm excited to share with you a new Chrome extension I've created called GAS Prettier.

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.

GAS Prettier

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. Image description
  • Open source, so the community can contribute and help improve it.

How to Format Document?
Ans: 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.

Happy coding!

Chrome Extension Link:
https://chromewebstore.google.com/detail/gas-prettier/fdhhhjfaflnaopgeplkpcdppiifpgmap

GitHub Link:
https://github.com/saffiullahfahim/gas-prettier

Top comments (0)