程式碼格式化
程式碼格式化
function sum(){
let a = 10;
let b =20;
return a+ b;
}# format all JS/TS files in the current directory and subdirectories
deno fmt
# format specific files
deno fmt myfile1.ts myfile2.ts
# check if all the JS/TS files in the current directory and subdirectories are formatted
deno fmt --check
# format stdin and write to stdout
cat file.ts | deno fmt -忽略格式化
Last updated