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

vscode | linux | c++ intelliense 被弃用解决方案

每日一句,vscode用的爽是爽,主要是可配置太强了。如果也很会研究,可以直接去咸鱼接单了
废话少说,直接整。
用着用着说是c++ intelliense被弃用,很多辅助功能无法使用,像查看定义、查看引用、函数跳转、智能提示……
归根结底,还是太菜了,但真的很需要这些辅助啊。

解决方案
使用第二个插件,然后重启远程就好了。
在这里插入图片描述

在工作区的.vscode 最终需要一下文件(好像是自动配置的,如果后续没整好,可以手动尝试)

//settings.json
{"files.associations": {"array": "cpp","*.tcc": "cpp","cctype": "cpp","clocale": "cpp","cmath": "cpp","cstdarg": "cpp","cstdint": "cpp","cstdio": "cpp","cstdlib": "cpp","cwchar": "cpp","cwctype": "cpp","deque": "cpp","list": "cpp","unordered_map": "cpp","vector": "cpp","exception": "cpp","fstream": "cpp","functional": "cpp","initializer_list": "cpp","iosfwd": "cpp","iostream": "cpp","istream": "cpp","limits": "cpp","new": "cpp","ostream": "cpp","numeric": "cpp","sstream": "cpp","stdexcept": "cpp","streambuf": "cpp","cinttypes": "cpp","tuple": "cpp","type_traits": "cpp","utility": "cpp","typeinfo": "cpp"},"C_Cpp_Runner.cCompilerPath": "gcc","C_Cpp_Runner.cppCompilerPath": "g++","C_Cpp_Runner.debuggerPath": "gdb","C_Cpp_Runner.cStandard": "","C_Cpp_Runner.cppStandard": "","C_Cpp_Runner.msvcBatchPath": "","C_Cpp_Runner.useMsvc": false,"C_Cpp_Runner.warnings": ["-Wall","-Wextra","-Wpedantic","-Wshadow","-Wformat=2","-Wcast-align","-Wconversion","-Wsign-conversion","-Wnull-dereference"],"C_Cpp_Runner.msvcWarnings": ["/W4","/permissive-","/w14242","/w14287","/w14296","/w14311","/w14826","/w44062","/w44242","/w14905","/w14906","/w14263","/w44265","/w14928"],"C_Cpp_Runner.enableWarnings": true,"C_Cpp_Runner.warningsAsError": false,"C_Cpp_Runner.compilerArgs": [],"C_Cpp_Runner.linkerArgs": [],"C_Cpp_Runner.includePaths": [],"C_Cpp_Runner.includeSearch": ["*","**/*"],"C_Cpp_Runner.excludeSearch": ["**/build","**/build/**","**/.*","**/.*/**","**/.vscode","**/.vscode/**"],"C_Cpp_Runner.useAddressSanitizer": false,"C_Cpp_Runner.useUndefinedSanitizer": false,"C_Cpp_Runner.useLeakSanitizer": false,"C_Cpp_Runner.showCompilationTime": false,"C_Cpp_Runner.useLinkTimeOptimization": false
}
//launch.json
{"version": "0.2.0","configurations": [{"name": "C/C++ Runner: Debug Session","type": "cppdbg","request": "launch","args": [],"stopAtEntry": false,"externalConsole": false,"cwd": "/usr/local/xxxxx,		//你的项目路径"program": "/usr/local/xxxxx/build/Debug/outDebug","MIMode": "gdb","miDebuggerPath": "gdb","setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true}]}]
}
//c_cpp_properties.json
{"configurations": [{"name": "linux-gcc-x64","includePath": ["${workspaceFolder}/**"],"compilerPath": "/usr/bin/gcc","cStandard": "${default}","cppStandard": "${default}","intelliSenseMode": "linux-gcc-x64","compilerArgs": [""]}],"version": 4
}
http://www.lryc.cn/news/133721.html

相关文章:

  • HPE服务器常见报错信息以及解决方案
  • 尚硅谷宋红康MySQL笔记 3-9
  • Leetcode.2337 移动片段得到字符串
  • 【vue】更改角色权限后,实现页面不刷新更改其可展示的导航菜单
  • 【G-LAB】网络工程师常用排错命令详细版
  • Linux 桌面版关闭GUI桌面环境
  • ChatGPT能代替搜索引擎吗?ChatGPT和搜索引擎有什么区别?
  • PHP海外代购管理系统mysql数据库web结构apache计算机软件工程网页wamp
  • 游戏反外挂方案解析
  • 基于郊狼算法优化的BP神经网络(预测应用) - 附代码
  • 【腾讯云 TDSQL-C Serverless 产品测评】全面测评TDSQL-C Mysql Serverless
  • Qt应用开发(基础篇)——纯文本编辑窗口 QPlainTextEdit
  • 数据结构-->栈
  • 强训第36天
  • PyTorch bug记录
  • js中的正则表达式(一)
  • 免费开源使用的几款红黑网络流量工具,自动化的多功能网络侦查工具、超级关键词URL采集工具、Burpsuite被动扫描流量转发插件
  • 使用Mybatis Plus进行DAO层开发
  • Android中如何不编译源生模块
  • 安装Vue_dev_tools
  • 【数据结构入门指南】二叉树顺序结构: 堆及实现(全程配图,非常经典)
  • css实现三角形的几种方法
  • ❤ Vue工作常用的一些动态数据和方法处理
  • SQLite的命令用法
  • 在jupyter notebook中使用海龟绘图
  • 密码学学习笔记(十八):Diffie–Hellman (DH) 密钥交换
  • Linux —— 进程间通信(管道)
  • python常用
  • jeecg如何创建报表并配置到菜单中
  • Servlet+JDBC实战开发书店项目讲解第12讲:会员管理功能