当前位置: 首页 > news >正文

vscode配置使用 cpplint

标题安装clang-format和cpplint

sudo apt-get install clang-format
sudo pip3 install cpplint

标题以下settings.json文件放置xxx/Code/User目录

settings.json

{"sync.forceDownload": false,"workbench.sideBar.location": "right","editor.minimap.enabled": false,"window.zoomLevel": 2.5,"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": "/usr/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,"editor.inlineSuggest.enabled": true
}
http://www.lryc.cn/news/252542.html

相关文章:

  • C++ 系列 第四篇 C++ 数据类型上篇—基本类型
  • C++ 指针详解
  • .locked、locked1勒索病毒的最新威胁:如何恢复您的数据?
  • Apache Sqoop使用
  • 【UGUI】实现UGUI背包系统的六个主要交互功能
  • 电压驻波比
  • Open3D 最小二乘拟合二维直线(直接求解法)
  • 面试题目总结(二)
  • TrustZone概述
  • [go 面试] Go Kit中读取原始HTTP请求体的方法
  • 小程序如何刷新当前页面?
  • ChatGPT使用路径:从新手到专家的指南
  • VsCode 调试 MySQL 源码
  • Mysql中的正经行锁、间隙锁和临键锁
  • 最强AI之风袭来,你爱了吗?
  • 时间序列预测实战(二十三)进阶版LSTM多元和单元预测(课程设计毕业设计首选)
  • Python之Appium 2自动化测试(Android篇)
  • chromium通信系统-ipcz系统(四)-ipcz-分层、和mojo的关系以及handle
  • 推荐一些研发人员经常用到的免费API接口
  • 高薪资是跳出来的,好工作是面出来的~
  • 记QListWidget中QPushButton QSS样式失效的“bug”
  • python提取通话记录中的时间信息
  • DSShop移动商城网店系统 反序列化RCE漏洞复现
  • docker搭建node环境开发服务器
  • 传统制造业企业如何实现数字化转型?
  • 面试:说一下深拷贝,浅拷贝,引用拷贝吧;Object类中的clone是哪种呢?
  • 接口压测指南
  • 计算机辅助药物设计AIDD-小分子-蛋白质|分子生成|蛋白质配体相互作用预测
  • 深度学习-yolo目标检测-机器学习-计算机视觉-python学习路线(呕心沥血出品-绝对精品-附资源链接)
  • ubuntu2204 防火墙ufw限制某ip对某端口的访问