Templ Project Cpp Extension Pack
Essential C/C++ development environment for VSCode - modern tooling with clang-based language server, CMake/XMake build systems, and advanced debugging
📦 What's Included
This extension pack includes 9 carefully selected extensions to enhance your cpp development experience in vscode.
✅ Core Extensions (4)
These extensions are essential for cpp development:
- clangd - C/C++ completion, navigation, and insights
- CMake - CMake language support for Visual Studio Code
- Clang-Format - Use Clang-Format in Visual Studio Code
- Error Lens - Improve highlighting of errors, warnings and other language diagnostics
💡 Additional Extensions (5)
These extensions provide extra functionality and convenience:
🚀 Installation
Method 1: Install from Marketplace
- Open Vscode
- Go to Extensions view (
Ctrl+Shift+X
/ Cmd+Shift+X
)
- Search for "Templ Project Cpp Extension Pack"
- Click "Install"
Method 2: Install via Command Line
code --install-extension @templ-project/cpp-extension-pack
Method 3: Install from VSIX
- Download the latest
.vsix
file from Releases
- Open Vscode
- Run
Extensions: Install from VSIX...
command
- Select the downloaded file
⚙️ Configuration
After installation, you may want to configure some settings for optimal cpp development:
clangd.path
"clangd.path": "clangd"
Path to clangd executable (use system PATH or specify absolute path)
clangd.arguments
"clangd.arguments": [
"--header-insertion=iwyu",
"--completion-style=detailed",
"--function-arg-placeholders",
"--fallback-style=llvm"
]
Additional arguments passed to clangd language server
clangd.semanticHighlighting
"clangd.semanticHighlighting": true
Enable semantic highlighting for better code visualization
"cmake.configureOnOpen": false
Automatically configure CMake project when opened
cmake.buildDirectory
"cmake.buildDirectory": "${workspaceFolder}/build"
Default CMake build directory
cmake.generator
"cmake.generator": "Ninja"
Default CMake generator (Ninja, Unix Makefiles, etc.)
files.associations
"files.associations": {
"*.h": "cpp",
"*.hpp": "cpp",
"*.cpp": "cpp",
"*.cc": "cpp",
"*.cxx": "cpp",
"*.c++": "cpp",
"*.C": "cpp",
"*.tpp": "cpp",
"*.ipp": "cpp"
}
File associations for C/C++ files
"clang-format.executable": "clang-format"
Path to clang-format executable
"clang-format.style": "llvm"
Clang-format style (llvm, google, chromium, mozilla, webkit, or file)
[cpp]
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format",
"editor.formatOnSave": true,
"editor.formatOnType": true
}
C++ specific editor settings
[c]
"[c]": {
"editor.defaultFormatter": "xaver.clang-format",
"editor.formatOnSave": true,
"editor.formatOnType": true
}
C specific editor settings
editor.suggest.insertMode
"editor.suggest.insertMode": "replace"
How code completion should behave when inserting text
editor.semanticTokenColorCustomizations
"editor.semanticTokenColorCustomizations": {
"enabled": true
}
Enable semantic token color customizations
⌨️ Recommended Keybindings
- Format current file with clang-format:
ctrl+shift+f
- Switch between header and source file:
ctrl+shift+i
- Go to definition:
f12
- Find all references:
ctrl+f12
- Go to symbol in file:
ctrl+shift+o
📝 Extension Details
Extension |
Publisher |
Description |
clangd |
LLVM Extensions |
C/C++ completion, navigation, and insights |
CMake |
twxs |
CMake language support for Visual Studio Code |
Clang-Format |
xaver |
Use Clang-Format in Visual Studio Code |
Error Lens |
Alexander |
Improve highlighting of errors, warnings and other language diagnostics |
CMake Tools |
Microsoft |
Extended CMake support in Visual Studio Code |
XMake |
tboox |
Extended XMake support in Visual Studio Code |
Better C++ Syntax |
Jeff Hykin |
The bleeding edge of the C++ syntax |
Doxygen Documentation Generator |
Christoph Schlosser |
Let me generate Doxygen documentation from your source code for you |
Native Debug |
WebFreak |
GDB, LLDB & Mago-MI Debugger support for VSCode |
🏷️ Categories
📄 License
Extension Pack License
This extension pack is licensed under the MIT License - see LICENSE.md for details.
Third-Party Extension Licenses
Important: Each extension included in this pack has its own license terms. templ-project is not responsible for the licensing, functionality, or security of third-party extensions.
Extension |
Publisher |
License |
Description |
clangd |
LLVM Extensions |
Apache-2.0 |
C/C++ completion, navigation, and insights |
CMake |
twxs |
MIT |
CMake language support for Visual Studio Code |
Clang-Format |
xaver |
MIT |
Use Clang-Format in Visual Studio Code |
Error Lens |
Alexander |
MIT |
Improve highlighting of errors, warnings and other language diagnostics |
CMake Tools |
Microsoft |
MIT |
Extended CMake support in Visual Studio Code |
XMake |
tboox |
Apache-2.0 |
Extended XMake support in Visual Studio Code |
Better C++ Syntax |
Jeff Hykin |
MIT |
The bleeding edge of the C++ syntax |
Doxygen Documentation Generator |
Christoph Schlosser |
MIT |
Let me generate Doxygen documentation from your source code for you |
Native Debug |
WebFreak |
Unlicense |
GDB, LLDB & Mago-MI Debugger support for VSCode |
Disclaimer
- We do not guarantee the functionality, security, or compatibility of included extensions
- We are not responsible for any issues caused by third-party extensions
- Users install and use extensions at their own risk
- Please review each extension's license and privacy policy before use
🤝 Contributing
Found an issue or want to suggest an extension? Please open an issue or submit a pull request.
📊 Extension Pack Stats
- Total Extensions: 9
- Required Extensions: 4
- Optional Extensions: 5
- Target IDE: vscode
- Language Focus: cpp
This extension pack is maintained by templ-project and updated regularly to include the most useful cpp development extensions.