make vs code find ros headers + have exetensions ready

This commit is contained in:
Niklas Halle 2025-03-29 14:11:11 +01:00
parent 48acaebc54
commit e67d0cfda2
3 changed files with 40 additions and 9 deletions

View file

@ -8,8 +8,9 @@
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"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": {},
@ -20,7 +21,22 @@
// "postCreateCommand": "cat /etc/os-release",
// 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.
// "remoteUser": "devcontainer"

3
.gitignore vendored
View file

@ -37,9 +37,6 @@
out
gen
# VS Code project files
.vscode/
### ROS2
install/
log/

18
.vscode/c_cpp_properties.json vendored Normal file
View 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
}