设置文件

This commit is contained in:
2026-01-10 17:27:00 +08:00
parent 6cc7403750
commit 52aa2aa0c1

70
settings.json Normal file
View File

@@ -0,0 +1,70 @@
{
// 单独语言设置
"[javascript][json][jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// 括号着色
"editor.bracketPairColorization.enabled": true,
// 每组括号的颜色不同
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"editor.cursorBlinking": "expand",
"editor.cursorSmoothCaretAnimation": "on",
"editor.fontSize": 18,
"editor.fontFamily": "'JetBrains Maple Mono', monospace",
"editor.fontLigatures": false,
"editor.fontWeight": "normal",
// 括号之间有一条竖线
"editor.guides.bracketPairs": "active",
"editor.inlineSuggest.enabled": true,
// 标签联动编辑
"editor.linkedEditing": true,
// 显示编辑器中的所有空格
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": true,
"editor.snippetSuggestions": "bottom",
"editor.tabSize": 2,
"editor.tokenColorCustomizations": {
// 注释不是斜体
"comments": {
"fontStyle": ""
}
},
"emmet.triggerExpansionOnTab": true,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"files.autoSave": "onFocusChange",
"files.hotExit": "off",
// 删除行尾空格
"files.trimTrailingWhitespace": true,
"javascript.autoClosingTags": true,
"javascript.inlayHints.parameterNames.enabled": "all",
"javascript.inlayHints.variableTypes.enabled": true,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"html.autoClosingTags": true,
// 不打开远程连接确认框
"security.promptForRemoteFileProtocolHandling": false,
"security.workspace.trust.untrustedFiles": "open",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "underline",
"terminal.integrated.fontFamily": "'JetBrains Maple Mono', monospace",
"terminal.integrated.fontSize": 18,
"typescript.autoClosingTags": true,
"typescript.suggest.autoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"window.restoreWindows": "none",
"workbench.colorTheme": "Ayu Mirage Bordered",
"workbench.colorCustomizations": {
// 文件树左侧竖线颜色(桃花粉)
"tree.indentGuidesStroke": "#FFB996"
},
// 打开文件不为预览模式
"workbench.editor.enablePreview": false,
"workbench.settings.editor": "json",
// 文件树缩进
"workbench.tree.indent": 14,
// 文件树左侧竖线显示
"workbench.tree.renderIndentGuides": "always",
// --- Live Server ---
"liveServer.settings.donotShowInfoMsg": true
}