About this tool
Generate a .prettierrc with every core formatting option, a live sample preview and per-file overrides.
This generator produces a ready-to-commit .prettierrc covering all fourteen core Prettier 3 options — print width, tabs, semicolons, quotes, trailing commas, arrow parens and more — with a live sample showing what each choice does to real code. It emits only the options you changed from the documented Prettier 3 defaults (or all of them if you prefer explicit config), plus optional per-file overrides for markdown, JSON and YAML.
Open Prettier Config Generator on AltFTool — it loads instantly in your browser.
Provide your input — an image, text, or data.
Let the tool analyze or generate the result.
Review, refine, and reuse the output wherever you need it.
Only options that differ from Prettier 3 defaults are written, so the config documents intent rather than noise.
Quotes, semicolons, indentation, trailing commas and arrow parens are shown applied to a code snippet as you toggle them.
One-click overrides blocks for *.md prose wrapping, wider *.json lines and YAML conventions.
Prettier 3 defaults to printWidth 80, tabWidth 2, spaces (not tabs), semicolons on, double quotes, trailingComma "all", bracketSpacing on, arrowParens "always", proseWrap "preserve" and endOfLine "lf". An empty {} config file gives you exactly these values, which is why this tool omits anything you leave at its default.
The headline change is trailingComma: it defaults to "all" in 3.0, where 2.x used "es5", so function call arguments now get trailing commas too. If your team pinned "es5" behaviour, set trailingComma explicitly rather than relying on the default.
In your project root, next to package.json. Prettier also accepts .prettierrc.json, .prettierrc.yml, prettier.config.js and a "prettier" key inside package.json — the JSON this tool generates works for the .prettierrc and .prettierrc.json forms directly.
An overrides array entry pairs a files glob with an options object, and those options apply only to matching files — for example files "*.md" with proseWrap "always" wraps markdown paragraphs at the print width while leaving code untouched. Later entries win when several globs match the same file.