In addition, can format code snippets in Markdown files. Snippets must be enclosed in triple backticks and have a language attribute.

    Ignore formatting code by preceding it with a // deno-fmt-ignore comment in TS/JS/JSONC:

    1. // deno-fmt-ignore
    2. 1, 0, 0,
    3. 0, 1, 0,
    4. 0, 0, 1,

    Or ignore an entire file by adding a 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.

    • --options-prose-wrap={always,never,preserve} - Define how prose should be wrapped in Markdown files. Defaults to “always”.