Deno: Auto Format JavaScript Code

By Xah Lee. Date: . Last updated: .

Auto Format Code

deno fmt filename

Disable Auto Format for Code Block

to tell deno not to format a semantic unit of code, add

// deno-fmt-ignore

to the line above it.

// deno-fmt-ignore
const   x =   123;

Disable Auto Format for Whole File

add to the top of file

// deno-fmt-ignore-file