Home Security Js 批量格式化代码prettier_command_line_cmd_format
Post
Cancel

Security Js 批量格式化代码prettier_command_line_cmd_format

refer to :
https://unix.stackexchange.com/questions/658767/is-there-a-command-line-application-that-can-prettify-text-containing-html-css

https://prettier.io/docs/en/cli.html

安装

npm install -g prettier

使用

cd <target folder>

prettier --write .    (替换现有的文件)

看起来舒服多了:

This post is licensed under CC BY 4.0 by the author.
Contents