vscode 使用prettier格式化代码 在项目中增加.prettierrc文件,代码结尾不加分号,缩进使用两个空格

.prettierrc:

{
	"tabWidth": 2,
	"useTabs": true,
	"semi": false,
	"singleQuote": false,
	"printWidth": 100,
	"trailingComma": "none"
}

猜你喜欢

转载自blog.csdn.net/xutongbao/article/details/143561104