Developer IDE Setup
| Section | Description |
|---|---|
| Overview | Configuration purpose |
| Configuration Files | VSCode settings explained |
| Usage | How to use configuration |
| Dependencies | Required extensions |
| Features | Available IDE features |
| Troubleshooting | Common issues |
The .vscode/ directory contains VSCode configuration files for consistent development across team members.
Contains C/C++ extension settings:
{
"configurations": [
{
"name": "Arboretum",
"compilerPath": "/workspace/llvm/bin/clang++",
"cStandard": "c17",
"cppStandard": "c++20",
"includePath": [
"/workspace/llvm/include"
]
}
]
}Contains workspace-specific settings:
| Setting | Purpose |
|---|---|
| C/C++ include paths | Points to LLVM headers |
| Compiler path | Uses built LLVM, not system Clang |
| Standard versions | C17 and C++20 |
- Open the workspace in VSCode
- The extension automatically uses these settings
- C/C++ features (intellisense, diagnostics) work correctly
To manually configure VSCode for this project:
{
"C_Cpp.default.cStandard": "c17",
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.includePath": [
"/workspace/llvm/include"
]
}| Extension | Purpose |
|---|---|
| C/C++ (ms-vscode.cpptools) | C/C++ language support |
| Rust-analyzer (rust-lang.rust-analyzer) | Rust language support |
- Accurate autocomplete for LLVM/Clang APIs
- Correct symbol resolution for custom code
- Compile-time error checking using built LLVM
- Proper include path resolution
- Reload window:
Ctrl+Shift+P→ "Reload Window" - Reindex C/C++:
Ctrl+Shift+P→ "C/C++: Reset C/C++ Database"
Ensure LLVM is built:
make llvm-project/build/llvm-stampUpdate c_cpp_properties.json if LLVM path changes.
- Settings reference
/workspace/llvm/as the installation directory - Use
maketo ensure LLVM is built before VSCode configuration - Configuration matches Makefile build system