make vs code find ros headers + have exetensions ready
This commit is contained in:
parent
48acaebc54
commit
e67d0cfda2
3 changed files with 40 additions and 9 deletions
|
@ -8,8 +8,9 @@
|
||||||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
|
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
|
||||||
"dockerfile": "../Dockerfile"
|
"dockerfile": "../Dockerfile"
|
||||||
},
|
},
|
||||||
"runArgs": ["--privileged"] // for real-time access
|
"runArgs": [
|
||||||
|
"--privileged" // for real-time access
|
||||||
|
],
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
// "features": {},
|
// "features": {},
|
||||||
|
|
||||||
|
@ -20,8 +21,23 @@
|
||||||
// "postCreateCommand": "cat /etc/os-release",
|
// "postCreateCommand": "cat /etc/os-release",
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
// "customizations": {},
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.defaultProfile.linux": "bash",
|
||||||
|
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
|
||||||
|
},
|
||||||
|
"extensions": [
|
||||||
|
"ms-vscode.cpptools",
|
||||||
|
"ms-vscode.cpptools-extension-pack",
|
||||||
|
"ms-vscode.cmake-tools",
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"ms-vscode.cpptools-themes",
|
||||||
|
"ms-iot.vscode-ros"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
|
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
|
||||||
// "remoteUser": "devcontainer"
|
// "remoteUser": "devcontainer"
|
||||||
}
|
}
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -37,9 +37,6 @@
|
||||||
out
|
out
|
||||||
gen
|
gen
|
||||||
|
|
||||||
# VS Code project files
|
|
||||||
.vscode/
|
|
||||||
|
|
||||||
### ROS2
|
### ROS2
|
||||||
install/
|
install/
|
||||||
log/
|
log/
|
||||||
|
@ -77,4 +74,4 @@ AMENT_IGNORE
|
||||||
venv310/
|
venv310/
|
||||||
|
|
||||||
# analysis output dir
|
# analysis output dir
|
||||||
analysis/
|
analysis/
|
||||||
|
|
18
.vscode/c_cpp_properties.json
vendored
Normal file
18
.vscode/c_cpp_properties.json
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Linux",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/**",
|
||||||
|
"/opt/ros/foxy/include/**"
|
||||||
|
],
|
||||||
|
"defines": [],
|
||||||
|
"compilerPath": "/usr/bin/clang-18",
|
||||||
|
"cStandard": "c17",
|
||||||
|
"cppStandard": "c++17",
|
||||||
|
"intelliSenseMode": "linux-clang-x64",
|
||||||
|
"configurationProvider": "ms-vscode.cmake-tools"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue