The Ollama Code Generator is a VS Code extension designed to streamline and enhance the coding experience by leveraging the power of the Ollama language model. This extension provides a suite of tools to assist developers in various tasks, from project generation to code completion and documentation.
Features
Project Generation: Generate entire projects from natural language descriptions, providing a quick and efficient way to scaffold new applications.
Model Selection: Easily select from a list of available Ollama models to tailor the extension's behavior to your specific needs.
Code Explanation: Gain a deeper understanding of your code with detailed explanations generated by Ollama.
Refactoring Suggestions: Improve code quality and maintainability with intelligent refactoring suggestions.
JSDoc Generation: Automatically generate JSDoc comments to document your code, ensuring clarity and consistency.
Interactive Chat: Engage in a conversation with Ollama to get real-time assistance with your code or project.
Installation (for testing)
Open Visual Studio Code.
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
Type "Extensions: Install from VSIX..." and select it.
Navigate to the extension's project directory.
Locate the .vsix file (you may need to package the extension first, see below).
Select the .vsix file and click "Install".
Packaging the extension (if you don't have a .vsix file)
Open the terminal in the extension's project directory.
Run vsce package to package the extension into a .vsix file.
If you don't have vsce installed, run npm install -g vsce first.
Recent Changes
Model Listing: Added functionality to dynamically retrieve and display available Ollama models.
Enhanced Project Generation: Improved the project generation process to create more complete and functional projects.
Code Completion: Implemented code completion suggestions to accelerate the coding process.
Code Explanation: Integrated code explanation capabilities to facilitate code comprehension.
Refactoring Assistance: Introduced refactoring suggestions to enhance code quality.
Documentation Generation: Enabled automatic generation of JSDoc comments for improved code documentation.
Chat Interface: Added an interactive chat interface for seamless communication with Ollama.