个人的vscode配置调优

发布时间 2024-01-11 11:27:57作者: 二乘八是十六

简述

vscode安装的插件

  • GBKtoUTF8:将 GBK 编码的文本转换为 UTF-8 编码
  • GitHub Theme:为VS Code设置 GitHub 风格的主题
  • Material Icon Theme:为VS Code设置Material Design风格的图标主题
  • Remote - SSH:允许VS Code 连接到远程服务器
  • YAML:YAML文件的语法高亮、代码格式化和其他支持
  • Kubernetes Templates:Kubernetes YAML文件模板

vscode的settings.json文件内容

{
// 安全参数
    // 允许不受信任的文件无警告打开
    "security.workspace.trust.untrustedFiles": "open",
    // 防止在打开不受信任的文件时出现安全横幅
    "security.workspace.trust.banner": "never",
// 终端参数
    // 终端光标设置为underline样式
    "terminal.integrated.cursorStyle": "underline",
    // 在终端中启用平滑滚动
    "terminal.integrated.smoothScrolling": true,
    // 设置终端字体太小为14
    "terminal.integrated.fontSize": 14,
// 编辑器参数
    // 将编辑器字体大小设置为 14
    "editor.fontSize": 14,
    // 禁用非基本 ASCII 字符的突出显示
    "editor.unicodeHighlight.nonBasicASCII": false,
    // 开启自动换行
    "editor.wordWrap": "on",
    // 在编辑器中启用平滑滚动
    "editor.smoothScrolling": true,
    // 在编辑器中启用平滑光标动画
    "editor.cursorSmoothCaretAnimation": "on",
    //将光标闪烁样式设置为平滑
    "editor.cursorBlinking": "smooth",
    // 使用鼠标滚轮在编辑器中缩放
    "editor.mouseWheelZoom": true,
    // 自动格式化粘贴的代码
    "editor.formatOnPaste": true,
    // 在保存文件时自动格式化代码
    "editor.formatOnSave": true,
    // 在键入时自动格式化代码
    "editor.formatOnType": true,
    // 按Enter 键时智能接受建议
    "editor.acceptSuggestionOnEnter": "smart",
// workbench参数
    // 设置icon样式为material-icon-theme
    "workbench.iconTheme": "material-icon-theme",
    // 防止在启动时自动打开编辑器
    "workbench.startupEditor": "none",
    // 将颜主题设置为GitHub Dark Dimmed
    "workbench.colorTheme": "GitHub Dark Dimmed",
    // 在工作区中的列中启用平滑滚动
    "workbench.list.smoothScrolling": true,
    // 将对话框样式设置为自定义
    "window.dialogStyle": "custom",
    // 在概览标尺中显示断点
    "debug.showBreakpointsInOverviewRuler": true,
    // 在拖放文件时禁用确认对话框
    "explorer.confirmDragAndDrop": false,
    // 启用Red Hat遥测
    "redhat.telemetry.enabled": true,
    // 启用自动保存功能
    "files.autoSave": "afterDelay",
    // 启用自动猜测文件编码
    "files.autoGuessEncoding": true,
    // 隐藏空编辑器的提示
    "workbench.editor.empty.hint": "hidden"
}