VSCode设置配置文件
{
// 调试时即使任务出错也继续调试
"debug.onTaskErrors": "debugAnyway",
// 差异编辑器中开启自动换行
"diffEditor.wordWrap": "on",
// 光标平滑闪烁
"editor.cursorBlinking": "smooth",
// 编辑器字体大小(支持小数)
"editor.fontSize": 13.5,
// 显示括号对引导线
"editor.guides.bracketPairs": true,
// 按住 Ctrl 并滚动鼠标滚轮可缩放字体
"editor.mouseWheelZoom": true,
// 启用编辑器平滑滚动
"editor.smoothScrolling": true,
// 代码补全默认选中第一个建议项
"editor.suggestSelection": "first",
// 编辑器自动换行
"editor.wordWrap": "on",
// 在第 120 列显示标尺线(辅助代码宽度控制)
"editor.rulers": [120],
// Tab 缩进为 4 个空格
"editor.tabSize": 4,
// 自动猜测文件编码(避免乱码)
"files.autoGuessEncoding": true,
// 打开不受信任的文件时不提示
"security.workspace.trust.untrustedFiles": "open",
// 粘贴多行内容到终端时不警告
"terminal.integrated.enableMultiLinePasteWarning": "never",
// 终端启用平滑滚动
"terminal.integrated.smoothScrolling": true,
// 使用 VS Code 自定义对话框样式(非系统原生)
"window.dialogStyle": "custom",
// 资源管理器列表平滑滚动
"workbench.list.smoothScrolling": true,
// 打开项目时自动运行 CMake 配置
"cmake.configureOnOpen": true,
// Vue 文件使用 Volar 作为默认格式化工具
"[vue]": {
"editor.defaultFormatter": "Vue.volar"
},
// 启用关联编辑(如修改 HTML 标签时同步更新闭合标签)
"editor.linkedEditing": true
}
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Comments
