Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Codr AssistantNew to Visual Studio Code? Get it now.
Codr Assistant

Codr Assistant

MompiDevi

|
74 installs
| (0) | Free
This extension is meant to assist coders to help Complete, Explain and make the code better.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codr Assistant Extension

This extension for Visual Studio Code (VSCode) integrates with the OpenAI API to provide various code-related functionalities using the GPT-3.5 Turbo model. It allows you to leverage the power of OpenAI to enhance your coding experience.

Features

  • Code Completion: Get code completion suggestions based on the selected code. The extension generates the next line of code or offers suggestions for completing a code snippet.
  • Code Summarization: Summarize the selected code by generating a brief description or explanation of its functionality.
  • Documentation Generation: Generate documentation for the selected code, including descriptions, usage examples, and other relevant information.
  • Code Refactoring: Get suggestions for refactoring the selected code, such as renaming variables or functions, improving code structure, or optimizing performance.
  • Error Handling: Receive suggestions for handling specific error scenarios or code snippets to catch and handle exceptions.

Prerequisites

  • OpenAI API Key: Before using this extension, make sure you have a valid OpenAI API key. Visit the OpenAI website (https://www.openai.com) to get an API key if you don't have one already.

Installation

  1. Install the extension in VSCode.
  2. Set your OpenAI API key by replacing 'YOUR_OPENAI_API_KEY' in the code with your actual API key.

Usage

  1. Open a code file in VSCode.

  2. Select the code you want to perform a specific action on.

  3. Use the following commands from the command palette or the VSCode menu:

    • Codr - Code Completion: Call OpenAI to get code completion suggestions for the selected code. (Shortcut: ctrl/cmd + alt + p)
    • Codr - Code Summarization: Summarize the selected code by generating a brief description.(Shortcut: ctrl/cmd + alt + s)
    • Codr - Code Documentation: Generate documentation for the selected code.(Shortcut: ctrl/cmd + alt + t)
    • Codr - Refractor Code: Get suggestions for refactoring the selected code.(Shortcut: ctrl/cmd + alt + f)
    • Codr - Error Handling: Receive suggestions for error handling.(Shortcut: ctrl/cmd + alt + e)
  4. The results will be displayed as information messages in VSCode.

Credits

This extension was created by Mompi Devi and uses the gpt-3.5-turbo model to generate comments.

License

This extension is licensed under the [MIT License]. See the LICENSE file for details.

Release Notes

0.0.1

Release of first build

1.0.0

Fix bug for chosen text

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft