vscode配置文件

这篇博客分享了Visual Studio Code(VSCode)的详细配置,包括界面风格、字体大小、主题、调试、更新模式、编辑器显示、终端设置等。博主还展示了如何自定义颜色主题,以及调整侧边栏、状态栏、活动栏和滚动条的样式。此外,还涉及到C/C++的IntelliSense设置和Git集成的相关选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

分享一下我自己的vscode配置
界面:
在这里插入图片描述

setting.json

{
    "workbench.settings.editor": "json",//"json" or "ui"
    "editor.fontSize": 19,
    "workbench.iconTheme": "vscode-icons",
    "debug.onTaskErrors": "showErrors",
    "editor.fontFamily": "'Source Code Pro', '微软雅黑', monospace, 'Droid Sans Fallback'",
    "update.showReleaseNotes": false,
    "telemetry.enableTelemetry": false,
    "telemetry.enableCrashReporter": false,
    "update.mode": "none",
    "vsicons.dontShowNewVersionMessage": true,
    "window.zoomLevel": 0,
    "explorer.confirmDelete": false,
    "files.autoGuessEncoding": true,
    "editor.renderWhitespace": "all",
    "markdown.preview.fontSize": 17,
    "terminal.integrated.fontSize": 16,
    "debug.console.fontSize": 16,
    "diffEditor.ignoreTrimWhitespace": false,
    "workbench.preferredDarkColorTheme": "Default Light+",
    "editor.suggestFontSize": 17,
    "http.proxyAuthorization": null,
    "git.path": "/usr/bin/git",
    "git.autorefresh": true,
    "gitlens.views.repositories.autoRefresh": true,
    "git.decorations.enabled": true,
    "gitlens.advanced.messages": {
        "suppressGitDisabledWarning": true
    },
    "workbench.statusBar.visible": true,
    "editor.minimap.enabled": false,
    "workbench.colorCustomizations": {//https://code.visualstudio.com/api/references/theme-color#side-bar
        "editor.wordHighlightBackground":"#50f6f677",//修改选择相同代码后的颜色
        "tab.activeBackground": "#574ff68c",//当前选项卡背景颜色
        "tab.activeForeground": "#ffffff",
        "tab.border": "#746b6b",
        "tab.hoverBackground": "#03045d",
        "tab.inactiveBackground": "#000000",
        "tab.inactiveForeground": "#ffffff",
        "editor.selectionHighlightBackground": "#44f1f15e",//选中高亮的背景色
        "editor.selectionHighlightBorder": "#f3f3f3b6",//选中高亮的边框色
        "editorWhitespace.foreground":"#49fff65e",
        "terminal.background":"#000000",
        "activityBar.background":"#000000",//最左边
        "activityBar.foreground":"#ff5b5b",
        "activityBar.border": "#009999",
        "activityBar.inactiveForeground":"#00d0cf",
        "editor.background":"#000000",//背景
        "editor.findMatchBorder": "#009999",
        "editor.rangeHighlightBorder": "#00aaaa",
        "panel.background":"#202220",
        "panel.border": "#009999",
        "menu.background":"#000000",
        "debugToolBar.background":"#000000",
        "statusBar.background":"#000000",
        "sideBar.background":"#000000",
        "sideBar.foreground": "#eeeeee",
        "sideBarTitle.foreground": "#ffff28",
        "sideBar.border": "#008888",
        "sideBarSectionHeader.border": "#008686",
        "scrollbar.shadow": "#eeeeee",
        "scrollbarSlider.background": "#0c81e088",
        "scrollbarSlider.hoverBackground": "#0352b9",
        "scrollbarSlider.activeBackground": "#000000",
        "quickInput.background":"#582f00",
    },
    "C_Cpp.errorSquiggles": "Enabled",
    "editor.maxTokenizationLineLength": 3000,
    "html.hover.documentation": false,
    "html.suggest.html5": true,
    "C_Cpp.intelliSenseCacheSize": 5120,
    "C_Cpp.intelliSenseMemoryLimit": 6200,
    "C_Cpp.intelliSenseUpdateDelay": 1500,
    "http.proxySupport": "off",
    "C_Cpp.default.intelliSenseMode": "gcc-x64",
    "editor.renderControlCharacters": true,
    "workbench.colorTheme": "Default Dark+",
    "gitlens.advanced.blame.sizeThresholdAfterEdit": 0,
    "workbench.sideBar.location": "left",
    "workbench.activityBar.visible": true,
    "breadcrumbs.enabled": true,
    "window.autoDetectHighContrast": false,
    "window.closeWhenEmpty": false,
    "window.title": "${dirty}${rootName}${separator}${activeEditorShort}",
    "window.titleBarStyle": "custom",
    "window.dialogStyle": "custom",
    "editor.accessibilityPageSize": 15,
    "editor.fastScrollSensitivity": 10,
    "editor.hover.delay": 800,
    "editor.lightbulb.enabled": false,
    "editor.links": true,
    "editor.matchBrackets": "near",
    "editor.mouseWheelZoom": true,
    "editor.scrollBeyondLastLine": false,
    "editor.tabCompletion": "on",
    "editor.wordWrapColumn": 300,
    "editor.selectionHighlight": false,
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": true
    },
    "task.quickOpen.skip": true,
    "problems.showCurrentInStatus": true,
    "C_Cpp.default.cppStandard": "gnu++14",
    "C_Cpp.default.cStandard": "gnu11",
    "C_Cpp.experimentalFeatures": "Enabled",
    "debug.openDebug": "openOnSessionStart",
    "debug.openExplorerOnEnd": true,
    "debug.showBreakpointsInOverviewRuler": true,
    "todo-tree.tree.showScanModeButton": false,
    "git.ignoreLegacyWarning": true,
    "gitlens.advanced.abbreviatedShaLength": 8,
    "window.openFilesInNewWindow": "on",
    "gitlens.hovers.currentLine.over": "line",
    "gitlens.codeLens.enabled": false,
    "gitlens.currentLine.format": "${author, }${' via 'pullRequest}${ • message|50?}",
    "gitlens.views.branches.showBranchComparison": false,
    "gitlens.views.branches.pullRequests.enabled": false,
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值