TypeScript Formatter
Format common code, data, markup, and document languages locally in your browser.
Format common code, data, markup, and document languages locally in your browser.
TypeScript Formatter re-indents TypeScript by breaking at braces and semicolons: function a(x:number){return x*2} becomes a three-line function. Type annotations are kept exactly as written; for opinionated formatting use Prettier in your project.