mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
Update VSCode settings to use Biome as the default formatter for multiple languages Add Biome to code actions on save and reorder search exclude patterns
51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
{
|
|
"[css]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[markdown]": {
|
|
"files.trimTrailingWhitespace": false
|
|
},
|
|
"[scss]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "biomejs.biome"
|
|
},
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.biome": "explicit",
|
|
"source.fixAll.eslint": "explicit",
|
|
"source.organizeImports": "never"
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"files.associations": {
|
|
"*.css": "tailwindcss"
|
|
},
|
|
"files.eol": "\n",
|
|
"i18n-ally.displayLanguage": "zh-cn",
|
|
"i18n-ally.enabledFrameworks": ["react-i18next", "i18next"],
|
|
"i18n-ally.enabledParsers": ["ts", "js", "json"], // 解析语言
|
|
"i18n-ally.fullReloadOnChanged": true, // 界面显示语言
|
|
"i18n-ally.keystyle": "nested", // 翻译路径格式
|
|
"i18n-ally.localesPaths": ["src/renderer/src/i18n/locales"],
|
|
// "i18n-ally.namespace": true, // 开启命名空间
|
|
"i18n-ally.sortKeys": true, // 排序
|
|
"i18n-ally.sourceLanguage": "zh-cn", // 翻译源语言
|
|
"i18n-ally.usage.derivedKeyRules": ["{key}_one", "{key}_other"], // 标记单复数形式的键为已翻译
|
|
"search.exclude": {
|
|
".yarn/releases/**": true,
|
|
"**/dist/**": true
|
|
}
|
|
}
|