A lightweight VS Code extension that provides a quick peek at C/C++ function implementations directly in a hover tooltip.
Features
Hover Preview: Hover over a function call in your C, C++, .cc, .hh, .hpp, .cpp, .h, .c files to see its implementation.
Workspace Search: Automatically searches for the function definition across all C/C++ files in your workspace.
Syntax Highlighting: Displays the implementation code with proper C syntax highlighting in the hover.
Requirements
VS Code 1.80.0 or higher.
How it Works
The extension scans your workspace for function definitions matching the name of the function you are hovering over. It uses a regex-based approach to find the implementation block and displays it.
Known Issues
Regex Parsing: The current implementation uses regular expressions to find function definitions. This may not cover all complex C++ function signatures or formatting styles perfectly.
Performance: For very large workspaces, the search might take a moment as it scans files.