配置参考文档:https://prettier.io/docs/en/options.html ...
配置参考文档:https://prettier.io/docs/en/options.html ...
链接: vscode常用插件及用户配置 .prettierrc推荐配置 .prettierrc常用配置 官网.prettierrc 文档 https://prettier.io/docs/en/configuration.html api说明 ...
1. 在根目录新建.prettierrc.json 2. { "singleQuote": true, // 设置单引号,true为单引号 "semi": true // 设置句尾的分号,true为加上分号 } ...
在根目录下新建.prettierrc文件 内容如下 { "semi": false, "singleQuote": true, "printWidth": 200 } ...
#自动格式化在设置中选择默认为下面这个,安装vscode的tslint和prettier插件,然后创建.prettierrc文件并配置,vscode设置选择保存时自动格式化。 ...
在setting.json中把下面的配置项拷上去 ...
写到settings.json ...
...