/home/demo/.config/Code/User/settings.json
{
"sync.gist": "a0037a0c96e487f12a2bd77404c8b955",
"sync.forceDownload": false,
"editor.minimap.enabled": false,
"window.zoomLevel": 1,
"editor.minimap.maxColumn": 150,
"explorer.confirmDelete": false,
"extensions.ignoreRecommendations": true,
"editor.renderWhitespace": "all",
"security.workspace.trust.untrustedFiles": "open",
"Lua.telemetry.enable": true,
"settingsSync.ignoredExtensions": [
"shan.code-settings-sync"
],
"files.autoSave": "onFocusChange",
"cpplint.cpplintPath": "/home/demo/.local/bin/cpplint",
"cpplint.lineLength": 120,
"cpplint.verbose": 1,
"cpplint.filters": [
"-runtime/references,-build/include_subdir,-build/c++11,-build/header_guard,+build/include_what_you_use"
],
"C_Cpp.vcFormat.indent.accessSpecifiers": true,
"C_Cpp.vcFormat.indent.braces": true,
"C_Cpp.vcFormat.indent.caseContentsWhenBlock": true,
"C_Cpp.vcFormat.indent.caseLabels": true,
"[c]": {
"editor.formatOnSave": false,
"editor.quickSuggestions": {
"comments": false,
"other": true,
"strings": false
},
"editor.tabSize": 2
},
"[cpp]": {
"editor.formatOnSave": false,
"editor.tabSize": 2,
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"cmake.configureOnEdit": false,
"cmake.configureOnOpen": false,
"C/C++ Include Guard.Comment Style": "Line",
"C/C++ Include Guard.Macro Type": "Filepath",
"C/C++ Include Guard.Remove Extension": false,
"C/C++ Include Guard.Suffix": "_",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"C/C++ Include Guard.File Path Pascal Case to Snake Case": true,
"files.refactoring.autoSave": false,
"C/C++ Include Guard.Auto Update Include Guard": false,
"editor.accessibilitySupport": "on",
"editor.tabSize": 2,
"vscodeGoogleTranslate.preferredLanguage": "Chinese (Simplified)",
"gitlens.graph.showGhostRefsOnRowHover": false,
"gitlens.graph.highlightRowsOnRefHover": false,
"gitlens.graph.statusBar.enabled": false,
"gitlens.showWelcomeOnInstall": false,
"gitlens.showWhatsNewAfterUpgrades": false,
"gitlens.hovers.pullRequests.enabled": false,
"workbench.editor.enablePreview": false,
"C_Cpp.clang_format_path": "/usr/bin/clang-format",
"C_Cpp.formatting": "clangFormat",
"prettier.embeddedLanguageFormatting": "off",
"C_Cpp.clang_format_sortIncludes": true,
"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 2, ColumnLimit: 120, AllowShortFunctionsOnASingleLine: false}",
"editor.rulers": [
120
],
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 2, ColumnLimit: 120, AllowShortFunctionsOnASingleLine: false}",
"explorer.compactFolders": false,
"outline.icons": false,
"explorer.excludeGitIgnore": true,
"[python]": {
"editor.formatOnType": true
},
"git.ignoredRepositories": [
"*build/*"
],
"git.repositoryScanIgnoredFolders": [
"node_modules",
"build/*"
],
"C_Cpp.files.exclude": {
"**/.vscode": true,
"**/.vs": true,
"build/**": true,
"thirdparty/**": true,
"3dparty/**": true,
},
"RainbowBrackets.depreciation-notice": false,
"workbench.colorTheme": "Default Light+",
"editor.fontSize": 18
}
/home/demo/.config/Code/User/keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+right",
"command": "workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "shift+alt+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "tab",
"command": "-insertSnippet",
"when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode"
},
{
"key": "tab",
"command": "-jumpToNextSnippetPlaceholder",
"when": "editorTextFocus && hasNextTabstop && inSnippetMode"
},
{
"key": "tab",
"command": "-editor.emmet.action.expandAbbreviation",
"when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "alt+q",
"command": "C_Cpp.SwitchHeaderSource",
"when": "editorTextFocus && editorLangId == 'c' || editorTextFocus && editorLangId == 'cpp' || editorTextFocus && editorLangId == 'cc' ||editorTextFocus && editorLangId == 'cuda-cpp'"
},
{
"key": "shift+alt+f",
"command": "references-view.findReferences",
"when": "editorHasReferenceProvider"
},
]
xxxx/.vscode/c_cpp_properties.json
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include"
],
"windowsSdkVersion": "10.0.19041.0",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "linux-gcc-x64",
"configurationProvider": "ms-vscode.makefile-tools"
}
],
"version": 4
}
xxxx/.vscode/settings.json
{
"files.associations": {
"istream": "cpp",
"ostream": "cpp",
"streambuf": "cpp",
"memory": "cpp",
"xstring": "cpp",
"algorithm": "cpp",
"chrono": "cpp",
"cmath": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"cwchar": "cpp",
"deque": "cpp",
"exception": "cpp",
"functional": "cpp",
"initializer_list": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"limits": "cpp",
"list": "cpp",
"map": "cpp",
"mutex": "cpp",
"new": "cpp",
"queue": "cpp",
"ratio": "cpp",
"stdexcept": "cpp",
"string": "cpp",
"system_error": "cpp",
"xthread": "cpp",
"thread": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"utility": "cpp",
"vector": "cpp",
"xfacet": "cpp",
"xhash": "cpp",
"xiosbase": "cpp",
"xlocale": "cpp",
"xlocinfo": "cpp",
"xlocnum": "cpp",
"xmemory": "cpp",
"xmemory0": "cpp",
"xstddef": "cpp",
"xtr1common": "cpp",
"xtree": "cpp",
"xutility": "cpp",
"*.gen_h": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"compare": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"ctime": "cpp",
"forward_list": "cpp",
"fstream": "cpp",
"iomanip": "cpp",
"iostream": "cpp",
"iterator": "cpp",
"locale": "cpp",
"numeric": "cpp",
"regex": "cpp",
"set": "cpp",
"sstream": "cpp",
"stop_token": "cpp",
"unordered_set": "cpp",
"valarray": "cpp",
"xlocbuf": "cpp",
"xlocmes": "cpp",
"xlocmon": "cpp",
"xloctime": "cpp"
}
}