TypeScript · Output Formatting

pretty

Enable color and formatting in TypeScript's output to make compiler errors easier to read.

Syntax
"pretty": true

Example

Example
{
  "compilerOptions": {
    "pretty": true
  }
}

More in this group

noErrorTruncation preserveWatchOutput

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course