个人常用配置

发布时间 2024-01-04 13:59:39作者: xuHxuan

vscode相关配置文件
launch.json文件配置
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "gcc.exe - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}\${workspaceRootFolderName}.exe",//这里根据tasks.josn中的-o下内容复制
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "D:\mingw64\bin\gdb.exe",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: gcc.exe 生成活动文件"
}
]
}
个性化配置
{
"editor.fontLigatures": true,
"editor.fontSize": 17,
"editor.fontFamily": "Inconsolata, 'Courier New', monospace,",
"editor.accessibilityPageSize": 10,
"editor.insertSpaces": true,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation":"on",
"editor.tokenColorCustomizations": {
"keywords": "#ffffff",
"variables": "#ffb5cf",
"functions": "#92f1fc",
"strings": "#e3d4ff",
"numbers": "#f8f559",
"comments": "#7ac47c",
"types": "#a4cfff"
},
"editor.semanticTokenColorCustomizations": {
"enabled": true, // enable for all themes
"rules": {
//"*.static": {
//"foreground": "#ff09f3",
//"fontStyle": "bold"
//},
"property": { //属性
"foreground": "#59822a",
"fontStyle": ""
},
"macro": { //宏
"foreground": "#b4b44b",
"fontStyle": ""
},
"function": { //函数
"foreground": "#92f1fc",
"fontStyle": ""
},
"variable.global": { //全局变量
"foreground": "#e74654",
"fontStyle": ""
},
"variable.local": { //局部变量
"foreground": "#ffb6cf",
"fontStyle": ""
},
}
},
"workbench.colorCustomizations": {
//编辑器
//"editor.background": "#000000",
//"sideBar.background": "#000000",
//"activityBar.background": "#000000",
//"editorIndentGuide.activeBackground1":"#9ba4af",
//"editorIndentGuide.activeBackground2": "#ebd39c",
//"editorBracketMatch.background": "#ffffff00",
"editorBracketMatch.border": "#69f047",
//"tab.activeBackground": "#c0d9f070",
"editor.selectionHighlightBorder": "#ff0037",
//"editor.selectionHighlightBackground": "#fcde8d81",
//"editor.selectionForeground": "#3b58ff",
"editor.lineHighlightBackground": "#a0baac35",//光标所在行
"editor.foldBackground": "#377affa0",//折叠背景色
},
"terminal.integrated.cursorBlinking": true,
"workbench.colorTheme": "One Dark Pro Darker",
"cnblogsClient.windows.workspace": "f:\C-code\Record",
}