Flowless, easy and automatic formatting experience is key to a great IDE experience and one that is highly supported by the TypeScript compiler.
When you run the
Editor: Format Code command (
Ctrl|⌘ + Alt| + L) formatting occurs on any selected text (if any) or the entire code file.
- Selected text
- Whole file
Auto indenting TypeScript is also driven by the compiler code instead of brittle regexes. It happens automatically on
Not only does indentation happen automatically. Formatting also happens automatically on
}. Trye and spot all the times the code is automatically getting formatted in the gif below