VSCode 配置头文件以及库索引

Camill

配置python库

在.vscode/目录下新建settings.json文件,输入以下内容:

1
2
3
4
5
6
7
8
{
"python.autoComplete.extraPaths": [
"/opt/ros/foxy/lib/python3.8/site-packages/"
],
"python.analysis.extraPaths": [
"/opt/ros/foxy/lib/python3.8/site-packages/"
]
}

配置c/c++库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/**",
"/opt/ros/foxy/include/**"
// "/opt/ros/noetic/include/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
  • 标题: VSCode 配置头文件以及库索引
  • 作者: Camill
  • 创建于 : 2024-02-22 22:25:46
  • 更新于 : 2024-02-22 23:15:00
  • 链接: https://camill.love/note/vscode-1/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
此页目录
VSCode 配置头文件以及库索引