as well as code snippets within Markdown files.
Ignore formatting code by preceding it with a comment in TS/JS/JSONC:
// deno-fmt-ignore
1, 0, 0,
0, 1, 0,
0, 0, 1,
Or ignore an entire file by adding a // deno-fmt-ignore-file
comment at the
top of the file.
Configuration
Starting with Deno v1.14 a formatter can be customized using either a configuration file or following CLI flags:
--options-use-tabs
- Whether to use tabs. Defaults to false (using spaces).--options-indent-width
- The number of characters for an indent. Defaults to 2.- Define how prose should be wrapped in Markdown files. Defaults to “always”.