Code LearnerAn AI-powered programming assistant for absolute beginners, built as a Visual Studio Code extension. Code Learner helps bridge the gap between complex code syntax and intuitive understanding. It explains highlighted code in plain English, clarifies programming errors, generates inline comments, suggests practical examples, and visualises program logic through conceptual flowcharts. The idea is simple: highlight code, get an explanation, and learn as you go. Instead of switching between browser tabs or copying code into external tools, you can explore and understand code directly inside your editor. See It in Action1. Code ExplanationHighlight any code snippet, right-click, and select
2. Conceptual Models & FlowchartsOpen a source file and access the Code Learner sidebar to generate a visual representation of the file's structure and logic.
3. Inline CommentsGenerate explanatory comments for selected code to make its purpose and behaviour easier to understand.
4. Error ExplanationsProgramming errors can be intimidating when you're just starting out. Code Learner helps explain diagnostic errors in plain language and provides context to help you understand what went wrong.
5. Examples & Mini-ProjectsExplore potential code examples and mini-projects that connect programming concepts to practical applications. Use them as starting points for experimentation and further learning.
Features
Why Code Learner?I started coding in 2024 with no prior programming experience, coming from a Food Science background. Learning to program meant navigating unfamiliar syntax, complex concepts, and imposter syndrome. At the same time, learning to code in the age of AI presented a different challenge: having access to tools that could generate code did not always mean understanding how that code worked. I created Code Learner to address that gap. Rather than focusing solely on generating code, Code Learner aims to help beginners understand the code they encounter, make sense of errors, and develop their own mental models of programming concepts. The goal is not just to help you write code, but to help you understand it. InstallationCode Learner is available on both the Visual Studio Code Marketplace and Open VSX. Search for How to UseExplain Selected Code
You can also open the Command Palette with Explain a Programming Error
If no error exists at the cursor position, Code Learner attempts to use another error detected in the file. Add an Inline Note
Explore Examples & Mini-Projects
Generate a Conceptual Model
Keyboard Shortcuts
You can also access these commands through the Command Palette or the editor's context menu. How It WorksCode Learner is built with TypeScript and the Visual Studio Code Extension API. When you request an explanation or another AI-powered feature, the extension sends the relevant code, language information, and other applicable context to a serverless proxy. The proxy handles the request to the configured LLM service, and the generated response is displayed in the Code Learner sidebar. This architecture allows beginners to access AI-assisted learning features without managing their own API credentials. Technologies Used
Requirements
Feedback & ContributionsCode Learner is an evolving project, and feedback is welcome. If you encounter a bug, have a suggestion, or want to contribute, visit the GitHub repository. LicenseCode Learner is distributed under the MIT License. |









