---
title: "browser extension for chrome and firefox - codefmt"
url: https://codefmt.dev/extension
sources:
  - https://codefmt.dev/extension
licence: "© codefmt. Cite with attribution to https://codefmt.dev."
---

# browser extension for chrome and firefox

format and lint your code directly inside automation platform editors. no copy-paste to vs code required. one click or keyboard shortcut (cmd+shift+f on mac, ctrl+shift+f elsewhere) and your code is formatted in place.

the extension works with the editors these platforms ship: it detects monaco (the editor component behind vs code) and codemirror 6 instances on the page, reads your code, formats it through codefmt.dev, and writes the result back into the editor. you can also right-click inside a supported editor for two context menu actions: format with codefmt (formatting only) and fix with codefmt (formatting plus safe auto-fixes). the menu only appears on supported platform domains, so it stays out of the way everywhere else.

## install

firefox: [install from firefox add-ons](https://addons.mozilla.org/en-US/firefox/addon/codefmt-format-automation-code/)v1.4.1

chrome: [install from chrome web store](https://chromewebstore.google.com/detail/codefmt-%E2%80%94-code-formatter/achmdbkihaafakccociipoknoaehnofb)v1.4.1

## supported platforms

[zapier](/zapier): code by zapier, javascript and python

[n8n](/n8n): code nodes, javascript and python

[pipedream](/pipedream): actions and sources, javascript and python

[make](/make): make code, javascript and python

[hubspot](/hubspot): data hub custom code actions, javascript and python

[hubl](/hubl): hubspot cms templates, modules, and email markup

## chrome vs firefox

the chrome and firefox builds are the same extension. both are manifest v3, the content script and popup are identical across the two stores, and the same version ships to both, so features land on chrome and firefox at the same time. the only user-visible difference is where the leave-a-review link points: the chrome web store listing or the firefox add-ons listing.

the chrome build requires chrome 116 or newer. the firefox build requires firefox 140 or newer.

## how it works

1. 1.open a code editor on any supported platform
2. 2.click the codefmt popup button or press cmd/ctrl+shift+f
3. 3.your code is formatted and written back to the editor instantly

## features

platform-aware formatting: understands each platform's code structure: async wrappers, globals, return styles. supports zapier, n8n, pipedream, make, hubspot data hub, and hubl templates

auto language detection: detects javascript vs python from the editor automatically

Fix with codefmt: right-click any selected code to apply safe auto-fixes in place: import organization, removed unused imports, js-mindset trap rewrites for hubl, deprecated tag renames, and more

configurable: print width, quotes, semicolons, trailing commas, ruff lint rules, and more

sync settings: sync your formatting preferences from codefmt.dev

lint diagnostics: javascript via oxlint, python via ruff (500+ rules), hubl via codefmt's 28-rule linter

privacy-first: no accounts, no cookies, no personal data. code is processed in memory and never stored

## privacy

the extension reads code from the editor, sends it to codefmt.dev/api/format for formatting, and writes the result back. code is processed in memory and never stored. no accounts, no cookies, no personal data. read the full [privacy policy](/privacy).
