How to use TypeScript Formatter
- Paste your code. The formatter engine loads in a moment the first time.
- Adjust the options if you need to.
- Copy the formatted result.
About TypeScript Formatter
This formatter parses TypeScript with the real TypeScript parser, so interfaces, generics, enums, decorators, abstract classes and the latest syntax are handled, not just guessed at. The code is printed again from scratch, with consistent spacing and line breaks.
Choose single quotes and the semicolon style to match your project. Long lines are wrapped at 80 characters.