Code InsightsCode Insights is a lightweight VS Code extension that helps you understand what common library functions actually do, directly inside the editor. Instead of switching to documentation, it provides inline explanations, behavioral notes, and structured insights through hover tooltips and a sidebar. This extension focuses on learning and correctness, not execution. In ActionHover InsightsQuick, contextual explanations appear directly when hovering over a supported function.
Learn More SidebarDeeper, structured information is available in a persistent side panel.
What Problem Does This Solve?Many bugs (especially for learners) come from misunderstandings such as:
Official documentation often explains what a function does, but not always how it behaves in practice. Code Insights makes these behaviors visible at the point of use. Features (v0.3.0)Smarter Hover DetectionHover insights are now shown only for real function calls, not for:
The extension resolves functions based on import context, not simple word matching. NumPy Import AwarenessSupports common NumPy usage patterns, including:
This results in more accurate and predictable hovers. Method Call Detection (New in v0.3.0)Code Insights now understands method calls on NumPy arrays, such as:
The extension infers the receiver type using simple assignment patterns (e.g. Ambiguous cases are intentionally ignored to avoid misleading information. Learn More SidebarClick Learn More to open a side panel with:
Test & Ask AI (Planned)The UI includes Test and Ask AI sections to show the future direction of the tool. In v0.3.0:
This is intentional and documented. InstallationInstall directly from the VS Code Marketplace by searching for Code Insights. Currently Supported FunctionsThis version focuses on a small, carefully curated set of NumPy APIs:
Each function includes:
The data is defined using a structured JSON schema, making it easy to extend. How It Works
This keeps the extension:
LimitationsThis is still an early-stage project. By design:
The extension aims to explain behavior, not replace documentation or debugging tools. Planned ImprovementsFuture versions may include:
These features are intentionally not part of v0.3.0. Project & BrandingCode Insights is developed under Lenex 🌐 https://lenex.dev Project Links
StatusVersion: v0.3.0 Stage: Early development (resolver-driven, learning + correctness focused) This release introduces smarter function detection and establishes a solid foundation for future expansion. LicenseMIT License |

