Command 'Sync: Download Settings' resulted in an error (command 'extension.downloadSettings' not found)
Vscode右键没有 format document,执行 format document 的时候报错
现象:
- 用 vscode 右键的时候,发现没有 ”format document“
- cmd + shift + p 强行执行 format with prettier 会报这个错误: Command 'Sync: Download Settings' resulted in an error (command 'extension.downloadSettings' not found)
原因:
根目录缺少 .prettierrc
配置文件
{
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"semi": true,
"jsxBracketSameLine": true,
"quoteProps": "consistent",
"trailingComma": "es5"
}